Installing RStudio on the MSU HPCCFri 06 July 2018 by Dr. Dirk Colbry
These instructions are for installing RStudio on the HPCC. RStudio provides a variety of installers on their website https://www.rstudio.com/products/rstudio/download2/. However, the HPCC uses an older version of Linux and the precompiled binaries are not compatible. Trying to install RStudio from the source code is an option but is also difficult due to the large numbers of libraries and compile dependancies. I basically gave up trying to install RStudio on until I realized that a version is included as an option in Anaconda. The following instructions show how to install RStudio using Anaconda.
Step 0: Connect to the HPC.
Use ssh to connect to the HPCC and make sure you have a working X11 server (ex. MobaXterm on windows or XQuarts on Mac). More information about X11 can be found here:
Step 1: Download the Linux Anaconda installers
Find the latest Linux installer on the Anaconda website. Right click on the download button for version 3.x and select "Copy Link". Use the
wget command on the hpcc to download the script file by typing wget and then pasting the url. For Example:
Step 2: Install anaconda using the defaults
Run the downloaded script in bash using the following command:
The last question will ask you to add the anaconda folder to your bashrc file. Say yes...
Step 3: Install RStudio
Use the conda install command to install RStudio. Note you may need to run
source ~/.bashrc first to update your path:
conda install rstudio
That should be it, RStudio is now installed in your home directory on the HPCC. The only other thing you will need is a X11 server. Assuming you have connected to the hpcc with an X11 connection you can run rstudio from the command line by typing: