install.packages: Install a package

View source: R/install.packages.R

install.packagesR Documentation

Install a package

Description

To use an add-on package from the web, install it first. After it's installed, load it into your current R session using library().

You only have to install a package once, but you have to load it using library() every time you open a new R session.

Details

The package name needs quotes.

install.packages(package)

See Also

library()

Examples

install.packages("tidyverse",  dependencies = TRUE)

install.packages("gapminder")


cobriant/qelp documentation built on July 1, 2022, 7:24 a.m.