Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RStudio on CHPC #2

Open
mvelinder opened this issue May 20, 2019 · 3 comments
Open

RStudio on CHPC #2

mvelinder opened this issue May 20, 2019 · 3 comments
Labels

Comments

@mvelinder
Copy link

mvelinder commented May 20, 2019

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.

@arq5x
Copy link
Contributor

arq5x commented May 20, 2019

This is great, thanks @mvelinder

@arq5x arq5x added the tips label May 20, 2019
@arq5x
Copy link
Contributor

arq5x commented May 20, 2019

can ssh -Y ... replace step one?

@mvelinder
Copy link
Author

Ah, apparently it can @arq5x ! I didn't know that about ssh. I've updated the top comment

@mvelinder mvelinder reopened this Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants