Difference between revisions of "RStudio"
Moskalenko (talk | contribs) |
(Clarify options and add image for getting out of /home in Rstudio) |
||
Line 36: | Line 36: | ||
The recommended way to run RStudio on HiPerGator is to start it in [[Open_OnDemand|Open OnDemand]]. | The recommended way to run RStudio on HiPerGator is to start it in [[Open_OnDemand|Open OnDemand]]. | ||
− | When RStudio starts the file browser will be limited to your home directory. To navigate to /blue or /orange | + | When RStudio starts the file browser will be limited to your home directory. To navigate to /blue or /orange, there are two main options: |
+ | |||
+ | === Option 1: Create a symlink to your target directory in home=== | ||
E.g. | E.g. | ||
Line 45: | Line 47: | ||
After you create a symlink you'll be able to go into the 'blue' directory in the RStudio file browser under home. | After you create a symlink you'll be able to go into the 'blue' directory in the RStudio file browser under home. | ||
− | + | ===Option 2: Change your working directory using R console=== | |
+ | |||
* Click on the '[Gear] More' menu in the RStudio file browser and choose 'Synchronize Working Directory' | * Click on the '[Gear] More' menu in the RStudio file browser and choose 'Synchronize Working Directory' | ||
* Run | * Run | ||
Line 51: | Line 54: | ||
in the RStudo REPL and the file browser should immediately reflect the new working directory. | in the RStudo REPL and the file browser should immediately reflect the new working directory. | ||
+ | [[File:RStudio setwd synchronize.png]] | ||
|}} | |}} | ||
<!--Job Scripts--> | <!--Job Scripts--> |
Revision as of 15:01, 14 June 2023
Description
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.
Environment Modules
Run module spider R
to find out what R environment modules that contain this application are available.
System Variables
- HPC_RSTUDIO_DIR - installation directory
Additional Information
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.
The recommended way to run RStudio on HiPerGator is to start it in Open OnDemand.
When RStudio starts the file browser will be limited to your home directory. To navigate to /blue or /orange, there are two main options:
Option 1: Create a symlink to your target directory in home
E.g.
$ cd $ ln -s /blue/MYGROUP/$USER/ blue
where MYGROUP is your real group name
After you create a symlink you'll be able to go into the 'blue' directory in the RStudio file browser under home.
Option 2: Change your working directory using R console
- Click on the '[Gear] More' menu in the RStudio file browser and choose 'Synchronize Working Directory'
- Run
setwd('/blue/MYGROUP/MYUSER/')
in the RStudo REPL and the file browser should immediately reflect the new working directory.