Difference between revisions of "RStudio"

From UFRC
Jump to navigation Jump to search
Line 22: Line 22:
 
<!--Modules-->
 
<!--Modules-->
 
==Environment Modules==
 
==Environment Modules==
Run <code>module spider {{#var:app}}</code> to find out what environment modules are available for this application.
+
Run <code>module spider R</code> to find out what R environment modules that contain this application are available.
 
==System Variables==
 
==System Variables==
 
* HPC_{{uc:{{#var:app}}}}_DIR - installation directory
 
* HPC_{{uc:{{#var:app}}}}_DIR - installation directory
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]].
  
Alternatively, you can use the gui module to start an interactive RStudio sessions that you can view in your web browser. See [[GUI Programs]] for more details.
+
When RStudio starts the file browser will be limited to your home directory. To navigate to /blue or /orange either create a symlink to your target directory in home
  
<pre>
+
E.g.
[jdoe@gator ~]$ module load gui
+
$ cd
[jdoe@gator ~]$ gui start -e rstudio
+
$ ln -s /blue/MYGROUP/$USER/ blue
 +
where MYGROUP is your real group name
  
To load a specific version:
+
After you create a symlink you'll be able to go into the 'blue' directory in the RStudio file browser under home.
[jdoe@gator ~]$ gui start -e rstudio --module rstudio/1.1.453
 
  
See 'gui start -h' for arguments to specify a resource request and so on.
+
or change your working directory using R controls:
 
+
* Click on the '[Gear] More' menu in the RStudio file browser and choose 'Synchronize Working Directory'
;Note:
+
* Run
:If you see your mouse cursor offset from the real location in the RStudio window check your RStudio editor font preferences. A known good font is 'DejaVu Sans Mono'.
+
setwd('/blue/MYGROUP/MYUSER/')
 +
in the RStudo REPL and the file browser should immediately reflect the new working directory.
  
 
|}}
 
|}}

Revision as of 17:59, 31 March 2023

Description

rstudio website  

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

or change your working directory using R controls:

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