checkPackageUsage: Check Package Use in Code

Description Usage Arguments Value

View source: R/check_package_use.R

Description

This will check what functions contained within a specified package are used in code.

Usage

1
2
3
checkPackagesUsage(package_names, code, verbose = TRUE)

checkPackageUsage(package_name, code)

Arguments

package_names, package_name

Name(s) of the package to check against

code

A character vector of code chunks to check for package use

verbose

Logical, should informative messages be printed during the dependency evaluation?

Value

checkPackageUsage will return a data.frame of class package_usage. When printed it will show a summary of the package usage.

checkPackagesUsage will return a list of class multi_package_usage. When printed it will show a summary of all packages mentioned, and flag any rarely used.


ashbaldry/depcheck documentation built on Jan. 1, 2022, 11:11 p.m.