See also: r-project.org
R:
Install packages
install.packages("package_name")
Load package
library(package_name)
Load contrib (external) packages using pacman
(first install pacman):
Note: if packages are not installed yet, they will be installed first and then loaded.
Note: the
::
means use this package even it is not loaded (yet).
# Nice selection of packages to use as a basis.
pacman::p_load(pacman, dplyr, GGally, ggplot2, ggthemes,
ggvis, httr, lubridate, plotly, rio, rmarkdown, shiny,
stringr, tidyr)