Skip to contents

Return all check results in a data frame

Usage

results(gp)

Arguments

gp

gp output.

Value

Data frame, with columns:

check

The name of the check.

result

Logical, whether it has failed or not.

See also

Other API: checks(), failed_checks()

Examples

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_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