Skip to contents

Runs checktor() with minimal output, suitable for CI/CD pipelines.

Usage

checkup(
  path = ".",
  severity = getOption("checktor.severity", c("policy", "robustness"))
)

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 to getOption("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. See checktor().

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