Strumenti Utente

Strumenti Sito


calcoloscientifico:userguide:tools:rstudio

RStudio

Available versions:

RStudio
2023.06.0+421

Connect to the Graphical User Interface server using Remote Desktop Protocol (RDP) or, preferably, 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 then load the rstudio module:

module load rstudio

Starting rstudio:

rstudio

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
calcoloscientifico/userguide/tools/rstudio.txt · Ultima modifica: 05/07/2023 10:00 da fabio.spataro