Changing the backend R-version used by RStudio
Several different versions of R are installed, to ensure compatibility with older scripts. There are also different version of RStudio, an integrated development environment (IDE) for R. Each RStudio version has a default R-version as backend, but this can be changed by the user. To do this, find out which version of R you want ot use (they are installed under /appl/R/
)
For example, to use in the RStudio R version 3.6.3, first get the path for the R executable for the specific version, that will be/appl/R/3.6.3-mkl2020/bin/R
Then open a terminal, and in the terminal, before starting RStudio, type the command:
export RSTUDIO_WHICH_R=/appl/R/3.6.3-mkl2020/bin/R
and press enter.
Then if you start RStudio from the command line from the same terminal, it will pick up the R version that you have selected.
Error internet routines cannot be loaded
installing packages in R
Sometimes when installing a package XXXXXX in R, one gets this error message.
Just retry after setting
options("download.file.method"="wget")