==== RStudio ====
* Home page: [[https://posit.co/download/rstudio-desktop|RStudio integrated development environment (IDE)]]
Available versions:
^ RStudio ^
| 2023.06.0+421 |
| 2023.12.1+402 |
Connect to the [[calcoloscientifico:userguide:gui|Graphical User Interface]] server using Remote Desktop Protocol (RDP) and open a terminal or, preferably, connect to the [[calcoloscientifico:userguide#login|Text-based User Interface]] and request access to a compute node with ''srun'':
srun --nodes=1 --ntasks-per-node=4 --partition=cpu --qos=cpu --time=0-03:00:00 --x11 --pty bash
Load the module for the version of R you intend to use:
module load gnu8 R
Load the rstudio module:
module load rstudio
Starting rstudio:
rstudio
=== Using Python with the RStudio IDE ===
[[https://support.posit.co/hc/en-us/articles/1500007929061-Using-Python-with-the-RStudio-IDE|Using Python with the RStudio IDE]]
=== Using a Python virtualenv with RStudio ===
Usage example with the ''scipy'' virtualenv:
[sti.calcoloo@ui01 ~]$ srun --nodes=1 --ntasks-per-node=4 --partition=cpu --qos=cpu --time=0-03:00:00 --x11 --pty bash
[sti.calcolo@wn15 ~]$ module load gnu7 R rstudio
[sti.calcolo@wn15 ~]$ module load python/3.7.2
[sti.calcolo@wn15 ~]$ source "/hpc/share/tools/python/3.7.2/virtualenv/scipy/bin/activate"
(scipy) [sti.calcolo@wn15 ~]$ rstudio
=== Using a Python condaenv with RStudio ===
Usage example with the ''scipy'' condaenv:
[sti.calcolo@ui01 ~]$ srun --nodes=1 --ntasks-per-node=4 --partition=cpu --qos=cpu --time=0-03:00:00 --x11 --pty bash
[sti.calcolo@wn15 ~]$ module load gnu8 R rstudio
[sti.calcolo@wn15 ~]$ module load miniconda3
[sti.calcolo@wn15 ~]$ source "$CONDA_PREFIX/etc/profile.d/conda.sh"
[sti.calcolo@wn15 ~]$ conda activate scipy
(scipy) [sti.calcolo@wn15 ~]$ rstudio