check_missing_packages: Check which packages are missing

View source: R/NAME_check_missing_packages.R

check_missing_packagesR Documentation

Check which packages are missing

Description

Checks which packages are used in a folder/R project but are not installed locally

Usage

check_missing_packages(install_missing_packages = FALSE)

Arguments

install_missing_packages

should missing packages be installed? Defaults to no (lgl)

Details

This function checks which R packages are called by the function 'library' in any script file (.r, .rmd, .qmd) in the local working directory. In requested by the user, the missing packages are installed from CRAN. In any case, the difference between the packages callled in the project folder and the packages installed are returned.

Value

string vector of missing packages

Examples

## Not run: install_missing_packages()

sebastiansauer/prada documentation built on Jan. 17, 2024, 11:05 a.m.