Installing R - SBScodingclub/SBSCodingClub GitHub Wiki

R + RStudio installation

R is an open source programming language developed at the University of Auckland in the 1990’s. It’s primarily used for statistical computing and has a strong following among the bioinformatics community. RStudio has been developed as an IDE for R and provides a great environment in which to write, test, and use R code.

macOS (osx)

R can be downloaded for macOS here, make are to get the appropriate file for you version of macOS. Once this has downloaded launch the .pkg and follow the prompts to install. To verify that installation has occurred look for R in your applications folder and open R.app. You may also need to install XQuartz,which can be found here.

To install RStudio navigate to the RStudio website and download the appropriate installer. Run this once it has downloaded and RStudio will be installed into your applications folder.

Linux

To install R on your linux computer download the appropriate version from the CRAN archive for your linux distribution and once it has downloaded extract the compressed file.

This section is unfinished, here are some resources to help write it / for installing on linux in the mean time:

Windows

R (3.4.0) can be downloaded for windows here. Once the .exe has been downloaded execute this for the windows installation to start.

Once R has been installed you can instal RStudio. This can be downloaded from here. Once downloaded run the executable to install RStudio.

Launching R

On macOS and linux to launch R from the command line open the terminal and enter the following commands. (text following $ or > is a user input)

/Users/slee  [slee]: $ R

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin11.4.2 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> 1 + 1
[1] 2
> print("Hello World")
[1] "Hello World"

To Launch RStudio double click on the program icon under applications or enter /Users/slee $: RStudio at the command line.