-
Notifications
You must be signed in to change notification settings - Fork 180
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
Using renv cache with rocker/rstudio #96
Comments
Setting it in
but is this the correct way of doing this? |
I think this is realted to #170. Unfortunately the problem will resist, that you have to write an upstream (your own) Dockerfile, but you can use that one as a template and after you specified the ENV-Vars you want to use, you can dynamically change tham during startup. There will be no need to write different Dockerfiles for multiple different paths. BTW: If you are using |
I close this as I believe it has been answered. Feel free to reopen it again if necessary. |
Hello everybody,
I would like to use the
renv
-package with your rstudio images, more precisely I would like to use the renv cache folder of the host as the cache folder in the container.There is the environment variable
RENV_PATHS_CACHE
, but I don't know the right place to mention it in the dockerfile.Setting it via
ENV RENV_PATHS_CACHE=/renv/cache
in the dockerfile doesn't seem to pass through to Rstudio.Can you guide me in the rigth direction?
Can I set it in
~/.Renviron
in the container?For further info see:
rstudio/renv#446
Stuff I already tried:
Sys.setenv(RENV_PATHS_CACHE = "/renv/cache")
inside the container. This works, but is a manual step I would like to remove.and the dockerfile of
my_rstudio_image:4.0.2
looks like this:Thanks for pointing me in the right direction.
Cheers
The text was updated successfully, but these errors were encountered: