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

Conditional setting of R_LIBS_USER #912

Open
csoneson opened this issue Aug 14, 2024 · 2 comments
Open

Conditional setting of R_LIBS_USER #912

csoneson opened this issue Aug 14, 2024 · 2 comments

Comments

@csoneson
Copy link

Hello!

We have noticed that a recent change to setup-r-dependencies, setting R_LIBS_USER if unset, had downstream effects on actions run in the Bioconductor Docker container. For an example, see here, the explicit error is

Error in setwd(libdir) : cannot change working directory

due to the change in R_LIBS_USER.

We are considering options (such as setting the R_LIBS_USER in the container, which may also have an impact on users relying on the current default), but wanted to ask if you would be open to adding a flag to the action, to make it possible for the user to choose whether R_LIBS_USER should be set if missing, or not.

cc @almahmoud

Thanks in advance!

@gaborcsardi
Copy link
Member

How exactly does the R_LIBS_USER change cause that check failure?

@LiNk-NY
Copy link

LiNk-NY commented Aug 14, 2024

It seems like the new folder has different permissions than the previous /__w/_temp.

Folder before the change:

R_LIBS_USER: /__w/_temp/R-lib

Folder after the change:

R_LIBS_USER: /github/home/R/x86_64-pc-linux-gnu-library/4.4

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

3 participants