Skip to contents

Names of the failed checks

Usage

failed_checks(gp)

Arguments

gp

gp output.

Value

Names of the failed checks.

See also

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 [6ms]
#> 
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 [6ms]
#> 
#> ℹ Preparing: namespace
#> ✔ Preparing: namespace [4ms]
#> 
#> ℹ Preparing: rd
#> ✔ Preparing: rd [4ms]
#> 
#> ℹ Preparing: revdep
#> ✔ Preparing: revdep [144ms]
#> 
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"