check_packages: Check packages

View source: R/check_packages.R

check_packagesR Documentation

Check packages

Description

Check that packages are installed and install them if not. Optionally: make sure that the most recent version of 'env' packages is installed; load the packages; and/or write a bibliography for the packages.

Usage

check_packages(packages, update_env = FALSE, lib = FALSE, bib = FALSE, ...)

Arguments

packages

Character. Packages to check

update_env

Logical. Check for any updates to 'env' packages?

lib

Logical. Call base::library() for each packages?

bib

Logical. Call knitr::write_bib() on packages?

...

Passed to the bib_file argument of knitr::write_bib().

Value

Unique, sorted vector of package names. Optionally, loads packages and/or writes bibliography.

Examples

check_packages(c("dplyr", "envFunc"))

Acanthiza/envFunc documentation built on April 14, 2025, 6:16 a.m.