Flags set.seed(<numeric>) calls. Multi-line forms are handled because
the check matches the call AST node, not raw text.
Value
checktor_check_result() with passed, issues, message.
Examples
pkg <- example_diagnose_scenario("code_examples/seed_setting_bad.R",
show_content = FALSE)
diagnose_seed_setting(pkg, verbose = FALSE) # prints PASSED/FAILED
#> ✖ Seed setting check: FAILED
#> Issues found:
#> • seed_setting_bad.R:7
#> • seed_setting_bad.R:15