Return all check results in a data frame
results(gp)
gp
output.
Data frame, with columns:
The name of the check.
Logical, whether it has failed or not.
Other API:
checks()
,
failed_checks()
path <- system.file("bad1", package = "goodpractice")
# run a subset of all checks available
g <- gp(path, checks = all_checks()[3:16])
#> Preparing: description
#> Preparing: lintr
#> Preparing: namespace
results(g)
#> check result
#> 1 no_description_depends FALSE
#> 2 no_description_date FALSE
#> 3 description_url FALSE
#> 4 description_bugreports FALSE
#> 5 lintr_assignment_linter TRUE
#> 6 lintr_line_length_linter TRUE
#> 7 lintr_trailing_semicolon_linter FALSE
#> 8 lintr_attach_detach_linter TRUE
#> 9 lintr_setwd_linter TRUE
#> 10 lintr_sapply_linter TRUE
#> 11 lintr_library_require_linter TRUE
#> 12 lintr_seq_linter TRUE
#> 13 no_import_package_as_a_whole FALSE
#> 14 no_export_pattern TRUE