Find all packages used via library(), require() or with package::function() in your project, a folder, or in a file (.R, .Rmd, .Rmarkdown; not case sensitive).

lib_find(path = ".", verbose = FALSE)

Arguments

path

Charater. Defines path to project file, a folder or an individual rmarkdown or script file. Defaults to current working directory

verbose

Logical. Set as TRUE if results from all files are to be reported

Value

Returns a list containing all packages used in file(s) supplied by path

Examples

# NOT RUN {
lib_find()
# }