NOTE: See Windows installation instructions for more detail. Install R and RStudio as regular users.
To install R, visit the Windows base distribution page. Click on the Download R-3.4.0 for Windows
link. Click on the installer and make the default selection for each option.
To install RStudio, visit the RStudio download page. Click on the current RStudio release for Windows link. Click on the installer and follow default instructions.
NOTE: See R for Mac OS X for more detail.
To install R, visit the R for Mac OS X. Click on the the R-3.4.0.pkg
link. Click on the installer and follow default instructions.
To install RStudio, visit the RStudio download page. Click on the current RStudio release for Windows link. Click on the installer and follow default instructions.
NOTE: See distribution-specific instructions for additional detail.
On debian-based systems, the easiest way to install R is through a package manager manager, run under an administrator account. On Linux one usually needs to install R packages from source, and R package source often contains C, C++, or Fortran code requiring a compiler and -dev
versions of various system libraries. It is therefore convenient to install the -dev
version of R.
sudo apt-get install r-base r-base-dev
When installing source packages, it may be necessary to have access to the -dev
version of various system libraries. Many of these are installed as dependencies of r-base-dev
; other common examples include the xml and curl libraries
sudo apt-get install libxml2-dev
sudo apt-get install libcurl-dev
Note in particular the use specification of libraries (the lib
prefix) and the use of the -dev
version.
To install RStudio, visit the RStudio download page. Download the appropriate archive for your OS. On Ubuntu, install the .deb
installer with
sudo dpkg -i rstudio-1.0.136-amd64.deb