Request: better default R_LIBS_USER
Hi, Pinging. On Thu, Mar 16, 2023 at 7:17?PM Felipe Contreras
<felipe.contreras at gmail.com> wrote:
On Thu, Mar 16, 2023 at 4:08?PM Dirk Eddelbuettel <edd at debian.org> wrote:
On 16 March 2023 at 13:39, Felipe Contreras wrote:
| R should do the same: it should install packages to somewhere inside | ~/.local by default.
rather than asking a few million R users to adjust from past practice.
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.
This would work, would it not?
Moreover, this location is going to change the next time the minor version is bumped anyway.
Or just change it for the next version of R. Cheers.
Felipe Contreras