Learn R Programming

grateful (version 0.0.2)

scan_packages: Scan a project or folder for packages used

Description

Scan a project or folder for packages used

Usage

scan_packages(all.pkgs = TRUE, include.Rmd = FALSE, ...)

Arguments

all.pkgs

Logical. Include all packages used in scripts within the project/folder (the default), or only packages used in the current session? If TRUE, uses scanForPackages, otherwise uses sessionInfo.

include.Rmd

Logical. Include packages used in Rmarkdown documents? (default is TRUE, requires knitr package).

...

Other parameters passed to scanForPackages.

Value

a character vector of package names

Examples

Run this code
# NOT RUN {
library(grateful)
scan_packages()
# }

Run the code above in your browser using DataLab