Difference between revisions of "Applications/RStudio"

From HPC
Jump to: navigation , search
m
m (Navigation)
 
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.
 
R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.
  
if you just wish to use R on the command line and for batch processing use the [[Applications/R|R module]].
+
* If you just wish to use R on the command line and for batch processing use the [[Applications/R|R module]].
 +
* If you wish to learn more about the [[Programming/R|R language]].
 +
 
 
Since this is an IDE for R it can only be used as an interactive session.
 
Since this is an IDE for R it can only be used as an interactive session.
  
Line 36: Line 38:
 
* RStudio allows parallel processing and on an '''exclusive''' interactive session Viper gives 28 processing cores
 
* RStudio allows parallel processing and on an '''exclusive''' interactive session Viper gives 28 processing cores
  
RStudio in an interactive session and running a R program may give the error:
+
RStudio in an interactive session and running an R program may give the error:
  
 
<pre>
 
<pre>
 
Warning message:
 
Warning message:
Character set is not UTF-8; please change your locale  
+
The character set is not UTF-8; please change your locale  
 
</pre>
 
</pre>
  
Line 51: Line 53:
  
  
==Documentation==
+
==Next Steps==
 
 
 
 
 
 
==Further Information==
 
  
 
* [https://www.rstudio.com/ https://www.rstudio.com/]
 
* [https://www.rstudio.com/ https://www.rstudio.com/]
 
* [https://www.r-project.org/ https://www.r-project.org/]
 
* [https://www.r-project.org/ https://www.r-project.org/]
  
{|
+
{{Modulepagenav}}
|style="width:5%; border-width: 0" | [[File:icon_home.png]]
 
|style="width:95%; border-width: 0" |
 
* [[Main_Page|Home]]
 
* [[Applications|Application support]]
 
* [[General|General]]
 
* [[Training|Training]]
 
* [[Programming|Programming support]]
 
|-
 
|}
 

Latest revision as of 10:58, 16 November 2022

Application Details

  • Description: RStudio is a free and open-source integrated development environment for R, a programming language for statistical computing and graphics.
  • Version: 3.0.1
  • Modules: rstudio/3.0.1 relies on R/3.4.1 and QT
  • Licence: Free, open-source

Usage Examples

R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.

R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.

  • If you just wish to use R on the command line and for batch processing use the R module.
  • If you wish to learn more about the R language.

Since this is an IDE for R it can only be used as an interactive session.

Interactive session


[pysdlb@login] $ interactive 
salloc: Granted job allocation 933039

[pysdlb@login01 ~]$ module load rstudio/3.0.1
[pysdlb@login01 ~]$ rstudio

libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

Running RStudio

  • RStudio allows parallel processing and on an exclusive interactive session Viper gives 28 processing cores

RStudio in an interactive session and running an R program may give the error:

Warning message:
The character set is not UTF-8; please change your locale 

Although this error won't affect R you can silence this by typing the following on the console window within RStudio:

> Sys.setlocale("LC_ALL")


Next Steps





Modules | Main Page | Further Topics