enable X11Forwarding on your local machine; edit ~/.ssh/config and add ForwardX11 yes; save and close
or instead of editing ~/.ssh/config you can connect to your favorite CHPC machine via ssh as usual but using the ssh -Y flag; using either approach, connect to your CHPC machine via ssh
on your CHPC environment, do module load R and module load RStudio; add these module load commands to your ~/.custom.sh if you want to load RStudio into your environment by default
start RStudio with the command rstudio; it should launch an Xorg GUI window of RStudio
I've found it helpful to maintain my R environment and project states on CHPC, where it's accessible from any machine via ssh. Let me know if you have problems!
Update: I've had some seg fault's with this approach. In particular running Tom's ggplot code. CHPC wasn't able to help sort it out. But I was able to resolve it by using rstudio in a conda environment. I'd recommend using rstudio in a conda environment like this, instead of the modules from CHPC.
For those interested in using RStudio on CHPC resources, it's quite easy. https://www.chpc.utah.edu/documentation/software/r-language.php#rstudio
Generally do the following:
~/.ssh/config
and addForwardX11 yes
; save and close~/.ssh/config
you can connect to your favorite CHPC machine viassh
as usual but using thessh -Y
flag; using either approach, connect to your CHPC machine viassh
module load R
andmodule load RStudio
; add these module load commands to your~/.custom.sh
if you want to load RStudio into your environment by defaultrstudio
; it should launch an Xorg GUI window of RStudioI've found it helpful to maintain my R environment and project states on CHPC, where it's accessible from any machine via
ssh
. Let me know if you have problems!Update: I've had some seg fault's with this approach. In particular running Tom's ggplot code. CHPC wasn't able to help sort it out. But I was able to resolve it by using rstudio in a conda environment. I'd recommend using rstudio in a conda environment like this, instead of the modules from CHPC.