Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default install and library path #881

Closed
andersla opened this issue Dec 5, 2024 · 1 comment
Closed

Change default install and library path #881

andersla opened this issue Dec 5, 2024 · 1 comment

Comments

@andersla
Copy link

andersla commented Dec 5, 2024

I would like to set package install directory to for example: "/home/rstudio/R/x86_64-pc-linux-gnu-library/4.3.3"
(I am mounting /home/rstudio to a persistent storage)

I tried to set R_LIBS_USER

Sys.getenv("R_LIBS_USER")
[1] "/home/rstudio/R/x86_64-pc-linux-gnu-library/4.3.3"

but still on install it says: /usr/local/lib/R/site-library:

install.packages("ggplot2")
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://p3m.dev/cran/__linux__/jammy/2024-04-23/src/contrib/ggplot2_3.5.0.tar.gz'
Content type 'binary/octet-stream' length 4809007 bytes (4.6 MB)
==================================================

.libPaths()
[1] "/usr/local/lib/R/site-library" "/usr/local/lib/R/library"

How can I set install path in rocker ?

@eddelbuettel eddelbuettel transferred this issue from rocker-org/rocker Dec 5, 2024
@eitsupi
Copy link
Member

eitsupi commented Dec 5, 2024

Duplicate of #857

@eitsupi eitsupi marked this as a duplicate of #857 Dec 5, 2024
@eitsupi eitsupi closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants