calcoloscientifico:userguide:tools:rstudio
RStudio
Available versions:
RStudio |
---|
2023.06.0+421 |
2023.12.1+402 |
Connect to the Graphical User Interface server using Remote Desktop Protocol (RDP) and open a terminal or, preferably, connect to the 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
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: 07/10/2024 20:36 da fabio.spataro