Determines whether CLI progress or messaging functions should be executed.
This helper evaluates the seekr.verbose
option, checks for an interactive session,
and disables output during testthat tests.
print_cli()
A logical scalar: TRUE
if CLI output should be shown, FALSE
otherwise.
This function is designed to control conditional CLI output (e.g., cli::cli_progress_step()
).
It returns TRUE
only when:
getOption("seekr.verbose", TRUE)
is TRUE
the session is interactive (interactive()
)
testthat is not running (!testthat::is_testing()
)