Skip to content

RStudio on CHPC #2

@mvelinder

Description

@mvelinder

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions