601 West Lombard Street
Baltimore MD 21201-1512
Reference: 410-706-7996
Circulation: 410-706-7928
R is freely available for Linux, Mac, and Windows operating systems.
To install R,
RStudio is an "integrated development environment" that many people find useful for using R. It is essentially a graphical user interface layer over R's default command line interface. Also, while there are differences in the way R works across different operating systems, RStudio provides the same experience on all platforms. RStudio is also free and open source.
*NOTE: R should be installed before RStudio.
To install RStudio,
"Packages" are libraries of code that provide R functions, data, and documentation. R comes with "base R", a collection of standard packages. You can view the base R packages after installing R by running the following code in the command line interface.
library()
Most R packages are available from CRAN website. Many packages can also be found on GitHub.
There are multiple ways to install R packages:
Command line
Type the following command, where <pkg name>
is the name of the package to be installed.
install.packages("<pkg name>")
From RStudio "Tools" menu
From RStudio "Packages" tab