print.package_usage: Package Usage Printing Options

Description Usage Arguments Details

View source: R/print_methods.R

Description

Package Usage Printing Options

Usage

1
2
## S3 method for class 'package_usage'
print(x, warn_percent_usage = 0.2, warn_number_usage = 3, ...)

Arguments

x

A package_usage data.frame

warn_percent_usage

Minimum percent of functions to be used within a dependent package. Default is 20%

warn_number_usage

Minimum number of functions to be used within a dependent package. Default is 3

...

Not used

Details

Package usage must be below both thresholds for the warning to appear. With the defaults, if a package has fewer than 5 functions then only 1 function is required to prevent a warning message to appear.


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