R/Rstudio trouble shooting
Here are some know issues with R/Rstudio on Compute.
Install R/Rstudio
See here.
Issues
r-stan problems
Issues installing rstan dependencies.
Set static download of the V8 library:
Sys.setenv(DOWNLOAD_STATIC_LIBV8=1)
install.packages("V8")
Update R
When starting RStudio it may inform you that it is an outdated version and that you should get the latest version from the website. Click ignore.
To update R, do it through Anaconda:
conda update r-base
Error messages when starting Rstudio
Several error messages may appear in the terminal when starting RStudio.
Ignore them if RStudio starts and works as expected.
Install packages
Some packages, such as lme4, cannot be installed through RStudio.
First install CMake through Anaconda:
conda install -c anaconda cmake
After this, install lme4 through R as usual:
install.packages("lme4")