Names of the failed checks
Arguments
- gp
gpoutput.
Examples
path <- system.file("bad1", package = "goodpractice")
# run a subset of all checks available
g <- gp(path, checks = all_checks()[9:16])
#> ── Preparing goodpractice for badpackage ───────────────────────────────────────
#> ℹ Preparing: description
#> ✔ Preparing: description [11ms]
#>
failed_checks(g)
#> [1] "no_description_depends" "no_description_date" "description_url"
# Or run with named check groups
g <- gp(path, checks = checks_by_group("description", "namespace"))
#> ── Preparing goodpractice for badpackage ───────────────────────────────────────
#> ℹ Preparing: description
#> ✔ Preparing: description [11ms]
#>
#> ℹ Preparing: namespace
#> ✔ Preparing: namespace [8ms]
#>
#> ℹ Preparing: rd
#> ✔ Preparing: rd [7ms]
#>
#> ℹ Preparing: revdep
#> ✔ Preparing: revdep [228ms]
#>
#> ℹ Preparing: tidyverse
#> ✔ Preparing: tidyverse [232ms]
#>
failed_checks(g)
#> [1] "complexity_unused_internal" "no_description_depends"
#> [3] "no_description_date" "description_url"
#> [5] "description_bugreports" "no_import_package_as_a_whole"
