Skip to contents

Names of the failed checks

Usage

failed_checks(gp)

Arguments

gp

gp output.

Value

Names of the failed checks.

See also

Other API: checks(), results()

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"