JohannesWiesner / csp_docker

A repository for creating Docker and Singularity files using Neurodocker
0 stars 1 forks source link

Add RStudio #24

Open JohannesWiesner opened 1 year ago

JohannesWiesner commented 1 year ago

Taken from our onboarding document: follow the suggestions from this StackOverflow thread and put the following line in your .profile file (where you adapt the path to your specific location):

export RSTUDIO_WHICH_R="/home/name.surname/.conda/envs/csp_surname_name/bin/R"

Note: In theory, RStudio could also be installed inside your conda environment (using conda install -c r rstudio) which would actually be the preferred way to do it. Then you wouldn't have to do the step above but simply start it from within your activated environment. But RStudio in conda is not well maintained and only works with R <= 3.6.

Similar to #1 and to #23 we would need to be able to start graphics applications from within the container connecting to the host's graphic server. Don't know if this is possible with RStudio.

JohannesWiesner commented 1 year ago

Of course we could also use jupyter-lab with R. But the variable inspector is quite buggs with R objects