RStudio - install.R for packages installation

Hi,

I am using an RStudio Project launcher. I cannot figure out how to get my packages installed. I placed an install.R file in my main github repository that is connected to the project. Any help on how to do this is much appreciated.

Hi @pohleric are you using a session launcher with a predefined image? I am assuming yes. In this case Renku will not automatically install the R packages you need. You may be able to install the packages once the session starts but they may not survive pausing/resuming.

We have implemented support for R/Rstudio when you build images from code. But this is not deployed yet. If you are not in a rush and can wait for a few weeks you can use this option. In this case you need to specify your R packages using renv

Not in a rush. I have a low number of packages that I can install easily every time. Thanks.

If some of your R projects are public can you share them here or send me a DM if you dont want to do that? I can try them out with the new feature I mentioned we will roll out in a few weeks.

Hi @tolevski , this project: Pseudomonas protegens proliferation in NatComs is an example relying on an external image currently for setting the R environment.

We have rolled out support for R and Rstudio in renkulab.io.

So you can use the build code feature. You have to define the R packages using renv.