Create a Multi-Category Diagnostic Result Object
Source:R/checktor-classes.R
checktor_category_result.RdConstructor function for creating diagnostic category result objects
used by multi-category diagnostic functions like diagnose_code_issues().
Arguments
- ...
Named arguments where each is a checktor_check_result object representing individual checks within the category.
Value
An object of class checktor_category_result containing:
Individual checktor_check_result objects for each check
passed: Named logical vector showing which individual checks passed
See also
Multi-category functions like diagnose_code_issues(), diagnose_documentation_issues()
Examples
# Create individual check results
tf_check <- checktor_check_result(FALSE, "file.R:5", "T/F usage check")
seed_check <- checktor_check_result(TRUE, character(0), "Seed setting check")
# Create category result
code_results <- checktor_category_result(
tf_usage = tf_check,
seed_setting = seed_check
)
print(code_results)
#> ── Diagnostic Category Results ─────────────────────────────────────────────────
#> ! 1 of 2 checks failed
#> Failed checks:
#> tf_usage: 1 issue