Diagnose Examples That Run Nothing
Source:R/diagnostics-documentation.R
diagnose_commented_examples.RdFlags an \examples{} block whose only content is commented out, so it demonstrates nothing. A comment beside live code is illustration and is not flagged.
Value
checktor_check_result() with passed, issues, message.
See also
checktor(), which runs this and every other check.
Examples
pkg <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
show_content = FALSE)
diagnose_commented_examples(pkg, verbose = FALSE)$passed
#> [1] TRUE