Skip to content
Prev 61475 / 63424 Next

Request: better default R_LIBS_USER

On Thu, Mar 16, 2023 at 4:08?PM Dirk Eddelbuettel <edd at debian.org> wrote:
I already have fixed it for myself, my request was about the default,
so most users don't have to fix it for themselves too.
Why would they have to adjust anything?

Just expand %U to both:

            paste(c(
            file.path(home, ".local", "lib", "r", x.y),
            file.path(home, "R", paste0(R.version$platform, "-library"), x.y)
            ), collapse = ":")

Then R would install packages to the new location in new installations
by default, but still use packages from the old location if present.

Moreover, this location is going to change the next time the minor
version is bumped anyway.

Cheers.