Check that packages are installed and install them if not. Optionally, make sure that the most recent version of 'env' packages is installed.

check_packages(packages, update_env = FALSE)

Arguments

packages

Character. Packages to check

update_env

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

Value

Unique, sorted vector of package names

Examples

setup_packages(c("dplyr", "envFunc"))
#> Error in setup_packages(c("dplyr", "envFunc")): could not find function "setup_packages"