Child pages
  • Running RStudio on the HPC Prince Cluster
Skip to end of metadata
Go to start of metadata

Are you new to programming with R?

If you are new to R programming, the following resources can help you get started:

Do you want to suggest other introductory R programming resources? Please let us know!

X Server

In order to be able to view on your local workstation or laptop the graphical display of a program (in the case of RStudio the graphical display is the RStudio IDE) running on a remote machine (in our case the remote machine is one of the compute nodes of the HPC Prince cluster) you must run an X server on your workstation or laptop.

  • Mac and Linux workstations usually come with an X server pre-installed and typically X Server is running.
  • Windows workstations require the installation of an X server. Xming and Cygwin are popular X Servers for Windows. X servers on Windows typically need to be started manually.

Please make sure an X Window server is installed and running (warning) on your workstation before running RStudio on the HPC Prince cluster.

For Linux and Mac users:

If your workstation or laptop is inside the NYU-Net, you can login directly to the HPC Prince cluster login node using SSH. Open up a terminal window and issue the following SSH command. Make sure to specify the -Y option with the SSH command.

The same instructions apply if you are outside the NYU-Net, but you use VPN to access the NYU Network.

$ ssh -Y <net_id>@prince.hpc.nyu.edu

Start an interactive session with X11 forwarding enabled with the following command:

$ srun --x11 --pty /bin/bash

You will be redirected to one of the compute nodes. Load "rstudio" module:

$ module avail rstudio
rstudio/1.0.136
$ module load rstudio/1.0.136

Finally, run RStudio:

$ rstudio

 

Note: Make sure you exit the node once you are done using Rstudio to free up the node. You can exit the node by typing the command $exit

For Windows Users:

You will need Xming and Putty to run Rstudio on Windows. 

Step 1: Download Xming and PuTTY if you don't have them. You will require both.

Step 2: Update the settings in PuTTY as shown in the image below.

Then you login in to Prince

Step 3: Make sure Xming is running.

Step 4: Type in the following commands in your PuTTY session:

$ srun --x11 --pty /bin/bash

Load the Rstudio module:

$ module load rstudio/1.0.136

Run Rstudio:

$ rstudio


The Rstudio window should pop up as below:

 

Note: Make sure you exit the node once you are done using Rstudio to free up the node. You can exit the node by typing the command $exit