R

R Package

# Install a package
install.packages("tidyverse")
# Load a package
library("tidyverse")

If we need to be explicit about where a function (or dataset) comes from, we’ll use the special form package::function(). For example, ggplot2::ggplot() tells you explicitly that we’re using the ggplot() function from the ggplot2 package

To install from GitHub:

library(devtools)
devtools::install_github("metalyrics/rmetacritic")
Creative Commons License by zcysxy