List all checks performed
Arguments
- gp
gpoutput.
See also
Other API:
failed_checks(),
results()
Examples
path <- system.file("bad1", package = "goodpractice")
# run a subset of all checks available
g <- gp(path, checks = all_checks()[3:16])
#> ── Preparing goodpractice for badpackage ───────────────────────────────────────
#> ℹ Preparing: code_structure
#> ✔ Preparing: code_structure [9ms]
#>
#> ℹ Preparing: namespace
#> ✔ Preparing: namespace [8ms]
#>
#> ℹ Preparing: covr
#> Warning: Prep step for "covr" failed: Failure in
#> `/tmp/Rtmp2KLIN0/R_LIBS5f153819852/badpackage/badpackage-tests/testthat.Rout.fail`
#> comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under
#> certain conditions. Type 'license()' or 'licence()' for distribution details.
#> R is a collaborative project with many contributors. Type 'contributors()' for
#> more information and 'citation()' on how to cite R or R packages in
#> publications. Type 'demo()' for some demos, 'help()' for on-line help, or
#> 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. >
#> > library(testthat) > test_check("bad1") Loading required package: bad1 Error
#> in idesc_create_package(self, private, package) : Cannot find DESCRIPTION for
#> installed package bad1 Calls: test_check ... <Anonymous> -> initialize ->
#> idesc_create -> idesc_create_package In addition: Warning message: In
#> library(package, lib.loc = lib.loc, character.only = TRUE, logical.return =
#> TRUE, : there is no package called 'bad1' Execution halted
#> ✔ Preparing: covr [1.9s]
#>
#> ℹ Preparing: cyclocomp
#> Warning: cannot open compressed file './DESCRIPTION', probable reason 'No such file or directory'
#> Warning: Prep step for "cyclocomp" failed: Failed to install 'badpackage' from local:
#> cannot open the connection
#> ✔ Preparing: cyclocomp [6.7s]
#>
#> ℹ Preparing: description
#> ✔ Preparing: description [9ms]
#>
checks(g)
#> [1] "on_exit_has_add" "complexity_function_length"
#> [3] "complexity_unused_internal" "duplicate_function_bodies"
#> [5] "covr" "cyclocomp"
#> [7] "no_description_depends" "no_description_date"
#> [9] "description_url" "description_not_start_with_package"
#> [11] "description_urls_in_angle_brackets" "description_doi_format"
#> [13] "description_urls_not_http" "no_description_duplicate_deps"
