RStudio is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management. For more information, see https://www.rstudio.com/products/RStudio/
Accessing RStudio
LMM users
...
Spawning on the General Purpose Cluster
...
You may experience varying performance on rstudio.arcc.albany.edu, but don't worry, you can run RStudio on the cluster!
Run the following command
Code Block language bash cp /network/rit/misc/software/singularity/rstudio.sbatch .
- Now you can edit this file with vim, gedit, emacs, etc to request the amount of resources you need. Follow the FAQ page How-to: Scheduling via SLURM to learn about some of the #SBATCH commands in the file.
After changing the #SBATCH commands to suit your needs, run:
Code Block language bash sbatch ~/rstudio.sbatch
- A log file will be generated in your home directory once your jobs spawns, following the naming convention rstudio_######.log, which documents how to connect to the server and kill the server when you are finished. Note that you must use the randomly generated password to log in
Using your own R Library
- Create a file in your home directory called .Renviron
- Set R_LIBS_USER=/path/to/custom/R/lib
- You can do this in RStudio by clicking File -> new Text File
- Then File -> Save As
- You can do this in RStudio by clicking File -> new Text File
- Restart RStudio by pressing in the upper right hand corner of the UI, then "Start New Session"
- Check .libPaths() to make sure the correct path is being referenced
...
If the system updates R and you find that your packages are no longer importing, please run from RStudio:
...
Code Block | ||
---|---|---|
| ||
update.packages(checkBuilt=TRUE, ask=FALSE) |
Having Trouble?
Contact arcc@albany.edu