R
R is a language for statistical computing and graphics. R's use in the data science and marketing analytics community has taken off over recent years and (at a bare minimum) should be considered as an open source replacement to software such as SAS, SPSS and Stata.
Installing R Windows Users
Go to the R homepage for Windows and download the most recent installer (R-4.0.5-win.exe
)
To install, double-click the exe
you just downloaded and follow the instructions.
Installing R for Mac Users
Go to the R homepage and download the installer (R-4.0.5.pkg
).
To install, double-click the pkg
and follow the instructions.
Why Not Install via Homebrew?
There is conflicting views on Homebrew's installation of R
.
Because we haven't tried it & to ensure no problems will emerge, we recommend going with the installation based on the CRAN distributed package.
Installing R for Linux
First, we need to import the signing key:
$ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
add a repository so that our operating system knows where to install the most recent version of R
from.
Enter the following into the terminal and press Return
:
$ add-apt-repository "'deb https://cloud.r-project.org/bin/linux/ubuntu '$(lsb_release -sc)'-cran40/'"
where we use lsb_release -cs
to access which Ubuntu flavor you run: one of “groovy”, “focal”, “bionic”, …
Now, update to get the package manifests from the new repository:
$ sudo apt-get update
We can now install R
as from the terminal by entering the following:
$ sudo apt-get install r-base r-base-dev
Install the multi-threaded OpenBlas library to get higher performance for linear algebra operations:
$ sudo apt-get install libopenblas-base