shinyproxy-rstudio-ide-demo icon indicating copy to clipboard operation
shinyproxy-rstudio-ide-demo copied to clipboard

Package installation each new RStudio session

Open mos790 opened this issue 3 years ago • 1 comments

Hi,

Firstly, thanks a lot for your awesome job.

I followed your tutorial to install and use RStudio server with shinyproxy. I noticed I have to re-install the packages every new session, is it possible to avoid this ?

Mos Thanks

mos790 avatar Feb 02 '22 11:02 mos790

Hi

Yes this is the case. Every time you start an application, ShinyProxy creates a new container. No files are persisted. You can solve this by mounting a volume into the container (see the conatiner-volumes option at https://shinyproxy.io/documentation/configuration/). Next you have to create and use a R library in this volume. See for example: https://www.r-bloggers.com/2020/10/customizing-your-package-library-location/

LEDfan avatar Feb 07 '22 08:02 LEDfan