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

Set appropriate RENV_ environment variables and bind-paths for renv cache #6

Open
pansapiens opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pansapiens
Copy link
Contributor

renv stores it's cache in ~/.cache/R/renv by default. We need to ensure containers use their own isolated package cache.

We don't currently override or bind this path (eg RENV_PATHS_ROOT) to an alternative location - this can result in undesirable interactions between cached packages that were compiled on the host and attempting to use/compile the same package in a container, when underlying linked system library versions don't match.

Test case was DirichletMultinomial and conflicting versions of libgsl:

renv::activate()
install.packages("BiocManager")
BiocManager::install("DirichletMultinomial")
library(DirichletMultinomial)

Removing the renv folder in the project didn't resolve the issue, since this doesn't remove the package cache shared between the host R and the container R.

@pansapiens pansapiens added the bug Something isn't working label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant