Flags system() / system2() / shell(), which need review for portability and for shell-injection risk.
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/system_calls_bad.R",
show_content = FALSE)
lab_system_calls(pkg, verbose = FALSE)$issues
#> [1] "system_calls_bad.R:8 (system())" "system_calls_bad.R:13 (system2())"
unlink(pkg, recursive = TRUE)