R Packages
Installing and using R packages
Installing Packages
install.packages("dplyr") # install from CRAN
install.packages(c("dplyr", "ggplot2")) # multiple packages
Loading Packages
library(dplyr) # load package
require(dplyr) # load with warning if not found
Package Info
installed.packages() # list installed packages
search() # list loaded packages
help(package="dplyr") # package help
Update Packages
update.packages() # update all packages
update.packages(ask=FALSE) # update without asking
Remove Packages
remove.packages("dplyr") # uninstall package
detach("package:dplyr", unload=TRUE) # unload package
Popular Packages
dplyr # data manipulation
ggplot2 # data visualization
tidyr # data tidying
readr # data import
stringr # string manipulation