Zoom Packages

Last updated: January 4, 2023

 Table of contents

Packages are a set of functions and/or data that add functionality to R.

Looking for packages

Package documentation

Managing R packages

R packages can be installed, updated, and removed from within R:

install.packages("package-name")
remove.packages("package-name")
update_packages()

Loading packages

To make a package available in an R session, you load it with the library() function.

 Example:
library(readxl)

Alternatively, you can access a function from a package without loading it with the syntax: package::function().

 Example:
readxl::read_excel("file.xlsx")