R/Rstudio trouble shooting
Here are some know issues with R/Rstudio on Compute.
Install R/Rstudio
See here.
r-stan problems
Problem: issues installing rstan-dependencies
Solution: Set static download of V8 library
Sys.setenv(DOWNLOAD_STATIC_LIBV8=1)
install.packages("V8")
Update R
When starting RStudio it informs you that it is an outdated version and you should get the latest version from the website. Just click ignore. To update R your need to do it through Anaconda:
conda update r-base
Error messages when starting Rstudio
I get several error messages in the terminal when I start Rstudio. Those I ignore. Rstudio starts and it works ok.
Install packages
Some packages (like lme4) cannot be installed through RStudio. To fix this, I needed to first install CMake. Cmake can be installed though Anaconda, like this:
conda install -c anaconda cmake
install.packages("lme4")