Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Installing Packages

R features easy installation of both core R and third party packages:

# install package ggplot2
# install package from a particular mirror site
install.packages("ggplot2", repos = "")
# install a package from source, rather than binary
install.packages("ggplot2", type = "source")
library(ggplot2)  # bring package into scope
# display all datasets in the package ggplot2
data(package = "ggplot2")
installed.packages()  # display a list of installed packages
update.packages()  # update currently installed packages
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content