Runs checktor() with minimal output, suitable for CI/CD pipelines.
Arguments
- path
Character. Path to the R package directory. Default:
".".- severity
Character. Which severity tiers count toward the result: any of
"policy","robustness","opinion". Defaults togetOption("checktor.severity", c("policy", "robustness")), so a build is not failed by a convention nobody enforces. Pass all three to hold the package to the conventions as well. Seechecktor().
Value
Logical. TRUE if no finding in the severity tiers was found, FALSE
otherwise. Findings in the other tiers do not change it.
Examples
# A package that uses a bare T fails the gate
pkg_bad <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
show_content = FALSE)
checkup(pkg_bad)
#> [1] FALSE