get_packages: Get information about the package used in the project
Description
The function returns a data frame containing information about
packages that are loaded with library(), require(), used
with :: operator, listed in the DESCRIPTION file,
and/or already loaded.
A string representing the path of the project root
in which the function will look recursively in order to find files that
fit include_pattern
include_pattern
A string representing a regex that matches
project files in which to look for packages. By default,
get_packages looks for all .R and .Rmd files in the current project.
exclude_pattern
A string representing a regex that matches
project files to exclude. By default,
get_packages excludes all files found in "tests" folder.
package_options
A character vector that represents the method through
which packages are loaded or referenced. The options are:
referenced for packages referenced by the :: operator,
library for packages loaded using library() or require(),
description for packages mentioned in DESCRIPTION file, and
loaded for packages already loaded in the current session.