a. For Mac OS users, you can download R from CRAN here.
- For R ≥4.1.0 there is a separate build for ARM-based Macs (also known as ‘M1/M2/M3/M4’ and ‘Apple Silicon’).
- For packages that require compilation: Xcode Command Line Tools needs to be installed - to install execute the following command in Terminal:
xcode-select --installor see here and here. If having gfortran issues on Apple Silicon computers, check out the macrtools R package, or use the gfortran installer linked at the top of this page.
b. For Windows users, you can download R here.
- For packages that require compilation: see here.
c. For Linux users, you can download R here.
Download RStudio here
For tips on getting started, see:
RStudioUser GuideRStudioGet Started section.RStudiocheatsheet
For more information on how RStudio and R interact, see here.
a. Mac OS:
- Simply downloading and installing a new version of
Rshould result in RStudio using the latest version. - By default
RStudiowill run against the current version of R.Framework. - List all of the versions of R.Framework on your system and determine which one is considered the current one by executing the following command in Terminal:
ls -l /Library/Frameworks/R.framework/Versions/ - To change the current version of R.Framework, you can either:
a. Run the installer from CRAN for the R version you want to be current.
b. Update the R.framework/Versions/Current directory alias directly usingln -s.
c. Override the RSTUDIO_WHICH_R environment variable to the R executable that you want to run against (add to ~/.profile file):export RSTUDIO_WHICH_R=/usr/local/bin/R
b. Windows:
- You may need to uninstall
Rto update it. - On Windows,
RStudiouses the system's current version ofRby default. - You can override which version of
Ris used via General panel of theRStudioOptions dialog. - Another option for Windows users is to use a package called
installr
c. Linux:
- Simply downloading and installing a new version of
Rshould result inRStudiousing the latest version. RStudiouses the version ofRpointed to by the output of the following command:which R- To override the RSTUDIO_WHICH_R environment variable to the
Rexecutable that you want to run against (add to ~/.profile file):export RSTUDIO_WHICH_R=/usr/local/bin/R
d. Updating RStudio
- Go to
Help > Check for Updates > Quit and Download... - Download and install.
a. Data Studio on the CAVATICA platform (free account required)
b. Posit Cloud (free account required)
To allow cloning of project repositories from within RStudio, you will need to have Git and (optionally) Git LFS installed on your system.
For details, see here
a. Mac OS:
b. Windows:
c. Linux:
- Instructions here
- Debian/Ubuntu:
apt-get install git - Fedora/Rocky:
dnf install git
OPTIONAL - only required during DS3 course for mass_cytometry_dataviz exercise.
For details, see here
a. Mac OS:
b. Windows:
- Git LFS is included in the distribution of Git for Windows
c. Linux:
- Instructions here
Once installed, set up Git LFS for your user account by running:
git lfs install