View source: R/install.packages.R
install.packages | R Documentation |
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.
The package name needs quotes.
install.packages(package)
library()
install.packages("tidyverse", dependencies = TRUE) install.packages("gapminder")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.