Skip to contents

Flags system() / system2() / shell(), which need review for portability and for shell-injection risk.

Usage

lab_system_calls(path, verbose = TRUE, parsed = NULL)

Arguments

path

Character. Path to the package directory. Default: ".".

verbose

Logical. Print diagnostic output. Default: TRUE.

parsed

Optional pre-parsed source, as returned internally by the orchestrator. Defaults to parsing path afresh.

Value

checktor_check_result() with passed, issues, message.

Source

No flat rule. A raw system() or system2() call needs review for portability rather than being an automatic violation, which is why this sits at robustness tier. See vignette("check-sources", package = "checktor") for how every check maps to its source.

See also

checktor(), which runs this and every other check.

Examples

pkg <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
                                 show_content = FALSE)
lab_system_calls(pkg, verbose = FALSE)$passed
#> [1] TRUE