From a3bbb6aacffabaa1be81c3d3f8143546a1d83b61 Mon Sep 17 00:00:00 2001 From: Alex Knigge <108944719+alexknigge@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:25:20 -0700 Subject: [PATCH] Create R_Studio.md A tutorial for R studio at CARC based on recent user requests. --- R_at_CARC/R_Studio.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 R_at_CARC/R_Studio.md diff --git a/R_at_CARC/R_Studio.md b/R_at_CARC/R_Studio.md new file mode 100644 index 0000000..6bfb322 --- /dev/null +++ b/R_at_CARC/R_Studio.md @@ -0,0 +1,25 @@ +## R Studio +If you want to use R Studio on the CARC systems, there is a way to do it with X11 forwarding. + +First, you should either watch the X11 forwarding tutorial: + +https://www.youtube.com/watch?v=-5ic9JWHuqI&list=PLvr5gRBLi7VAzEB_t5aXOLHLfdIu2s1hZ&index=14 + +Or you can read it: + +https://github.com/UNM-CARC/QuickBytes/blob/master/X11_forwarding.md + +Then you will need to create a conda environment with R and R studio. You can do so with these commands: + +`module load miniconda3` \ +`conda create --name rstudio --channel r rstudio` + +You will type `y` for the conda environment to install. Once it is finished, type: + +`conda activate rstudio` + +Once you have the environment activated, you can run a Slurm job with the following command: + +`srun --x11 --partition debug rstudio` + +Note: this was done on Hopper, if you are on a different cluster you will need to change the partition name.