Skip to content

Best way to run R code that requires a bit more memory? #1180

Answered by kubu4
aspencoyle asked this question in Q&A
Discussion options

You must be logged in to vote

Believe it or not, I have managed to get RStudio Server to function on Mox!!!

Here's the script to use to launch from from SBATCH.

  • After launching, you'll need to follow the instructions that are printed in the SLURM output file.
  • Before using, you'll likely need to change the R_LIBS_USER location specified in your ~/.Renviron file. Here's how my ~/.Renviron file currently looks:
[samwhite@mox2 rstudio_server_test]$ cat ~/.Renviron 
# Set local library installation path
# R_LIBS_USER=/gscratch/srlab/sam/R_libs
R_LIBS_USER=/gscratch/srlab/sam/R_libs_singularity

I we can adjust the script to set to use a specific ~/.Renviron file at some point, to avoid the need to manually modify and exis…

Replies: 5 comments 13 replies

Comment options

You must be logged in to vote
3 replies
@kubu4
Comment options

@kubu4
Comment options

@kubu4
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@yaaminiv
Comment options

@kubu4
Comment options

@yaaminiv
Comment options

@aspencoyle
Comment options

aspencoyle Apr 29, 2021
Collaborator Author

@kubu4
Comment options

Answer selected by aspencoyle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants