Names of the failed checks
Arguments
- gp
gpoutput.
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 [7ms]
#>
#> ℹ Preparing: namespace
#> ✔ Preparing: namespace [7ms]
#>
#> ℹ Preparing: covr
#> Warning: Prep step for "covr" failed: Failure in
#> `/tmp/Rtmp2KLIN0/R_LIBS5f18f0c677/badpackage/badpackage-tests/testthat.Rout.fail`
#> d 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 [4.5s]
#>
#> ℹ Preparing: description
#> ✔ Preparing: description [9ms]
#>
failed_checks(g)
#> [1] "complexity_unused_internal" "no_description_depends"
#> [3] "no_description_date" "description_url"
