Strumenti Utente

Strumenti Sito


calcoloscientifico:userguide:tools:rstudio

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Prossima revisione
Revisione precedente
calcoloscientifico:userguide:tools:rstudio [05/07/2023 09:48] – creata fabio.spatarocalcoloscientifico:userguide:tools:rstudio [07/10/2024 20:36] (versione attuale) – [Table] fabio.spataro
Linea 5: Linea 5:
 Available versions: Available versions:
  
-^ RStudio      ^+^ RStudio        ^
 | 2023.06.0+421  | | 2023.06.0+421  |
 +| 2023.12.1+402  |
  
-Connect to the [[calcoloscientifico:userguide:gui|Graphical User Interface]] server using Remote Desktop Protocol (RDP) or, preferably, request access to a compute node with ''srun'':+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'':
  
 <code> <code>
Linea 14: Linea 15:
 </code> </code>
  
-Load the module for the version of R you intend to use then load the rstudio module:+Load the module for the version of R you intend to use
 + 
 +<code> 
 +module load gnu8 R 
 +</code> 
 + 
 +Load the rstudio module:
  
 <code> <code>
Linea 24: Linea 31:
 <code> <code>
 rstudio rstudio
 +</code>
 +
 +=== 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:
 +
 +<code>
 +[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
 +</code>
 +
 +=== Using a Python condaenv with RStudio ===
 +
 +Usage example with the ''scipy'' condaenv:
 +
 +<code>
 +[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
 </code> </code>
  
calcoloscientifico/userguide/tools/rstudio.1688543282.txt.gz · Ultima modifica: 05/07/2023 09:48 da fabio.spataro

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki