By default, the default R version on Helix is used. You can view the current default version by executing module -t -d avail 2>&1 | grep math/R
on Helix.
.bashrc
in your home directory, either by opening a shell on Helix or by starting the RStudio app on bwVisu and opening the file there.export R_MODULE_VERSION=<available R version on Helix>
export R_MODULE_VERSION=4.2.1
.tar -xf R-x.y.z.tar.gz
cd R-x.y.z.tar.gz
x.y.z
denotes the version of your download R installation files.sed '/date-time conversions do not work in 2020/s/^/: #/' -i configure
./configure prefix=$HOME/path/in/you/home/directory
make
make install
PATH
: Open or create the file .bashrc
in your home directory and add the following line:
export "$PATH=/path/to/your/R/installation/directory/bin:$PATH"
/bin
is added to the path to the installation location of your custom R version. This is the default location where the binaries of R will be usually installed.source $HOME/.bashrc && R --version
Open a shell on Helix by sshing into Helix or by starting the RStudio app on bwVisu and switching to the Terminal tab.
Execute
module load math/R/4.2.1
Load the R environment by executing
R
Run the following installation command:
install.packages("name-of-the-package")
If the package will not install because another package could no be installed, try to run the installation command for that package first. After that, retry to install package. If the installation worked, you'll be able to load the package in RStudio.