-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
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:
- enable X11Forwarding on your local machine; edit
~/.ssh/config
and addForwardX11 yes
; save and close - or instead of editing
~/.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
- on your CHPC environment, do
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 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.