gp {goodpractice} | R Documentation |
Run good practice checks
Description
To see the results, just print it to the screen.
Usage
gp(
path = ".",
checks = all_checks(),
extra_preps = NULL,
extra_checks = NULL,
quiet = TRUE
)
Arguments
path |
Path to a package root. |
checks |
Character vector, the checks to run. Defaults to
all checks. Use |
extra_preps |
Custom preparation functions. See
|
extra_checks |
Custom checks. See |
quiet |
Whether to suppress output from the preparation
functions. Note that not all preparation functions produce output,
even if this option is set to |
Value
A goodpractice object that you can query
with a simple API. See results
to start.
Examples
path <- system.file("bad1", package = "goodpractice")
# run a subset of all checks available
g <- gp(path, checks = all_checks()[3:16])
g
[Package goodpractice version 1.0.5 Index]