[Rd] Request: better default R_LIBS_USER
Felipe Contreras
|e||pe@contrer@@ @end|ng |rom gm@||@com
Thu Mar 23 20:48:40 CET 2023
Hi,
Pinging.
On Thu, Mar 16, 2023 at 7:17 PM Felipe Contreras
<felipe.contreras using gmail.com> wrote:
> On Thu, Mar 16, 2023 at 4:08 PM Dirk Eddelbuettel <edd using 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
More information about the R-devel
mailing list