Summary:
- Address CRAN warnings about writing messages to the console that cannot be easily suppressed. Usage of
print(), cat(), and even message() should be conditional, invisible, or returned as an object for user choice. This applies particularly to the following two lines:
print(overview_lst$diag_lst)
message("A report has been written to:\n ", filepath)
(appearing twice: see lines ~252, 267, 602, 617 of R/report.R)
CRAN Cookbook Guidance:
- Generate information-bearing R objects, let the user extract and print
- Use
message() or warning() only when truly needed, ideally behind a verbose argument
- Remove or gate all unrequested console output
Code Reference:
Checklist:
Summary:
print(),cat(), and evenmessage()should be conditional, invisible, or returned as an object for user choice. This applies particularly to the following two lines:(appearing twice: see lines ~252, 267, 602, 617 of R/report.R)
CRAN Cookbook Guidance:
message()orwarning()only when truly needed, ideally behind averboseargumentCode Reference:
Checklist:
verbosearg) allprint()/message()callsverboseargument if not present