Description Usage Arguments Value See Also Examples
View source: R/package_check.R
'checkPackageDependencyUse()' checks the DESCRIPTION
file for packages mentioned in the Depends
and Imports
fields.
Using these packages, it then checks the scripts in the R directory to check for function use of each package.
1 | checkPackageDependencyUse(path = ".", include_suggests = FALSE, verbose = TRUE)
|
path |
Path to the package root directory. |
include_suggests |
Logical, should the "Suggests" field also be checked for package dependencies or just the Depends and Imports? |
verbose |
Logical, should informative messages be printed during the dependency evaluation? |
An object of class multi_package_usage
, a named list of the dependencies used, each containing a
data.frame
of all the functions within the package and how often they are used within the project.
The result will flag any packages that have been rarely used in the project.
checkProjectDependencyUse
, checkShinyDependencyUse
1 2 3 4 5 | ## Not run:
dependency_use <- checkPackageDependencyUse()
summary(dependency_use)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.