analyze_package_imports: Analyze package imports

Description Usage Arguments Value Examples

Description

Analyzes the package imports via library() and load_packages() in a list of filenames.

Usage

1
2
analyze_package_imports(files = list.files(pattern = "\\.[rR]$",
  recursive = TRUE))

Arguments

files

A vector of filenames of R source files. Typically this is created by list.files(folder, pattern="\\.[rR]$")

Value

a named list of results (invisibly). This list contains all import statements, a list of duplicated imports, a list of redundant imports, all function calls in the files with the corresponding imports and a list of packages with the number of function calls.

Examples

1
2
3
4
## Not run: 
analyze_package_imports(list.files(pattern="\\.[rR]$", recursive=TRUE))

## End(Not run)

hgvandenboorn/hgutils documentation built on Sept. 9, 2019, 2:50 a.m.