Prints a message to the console with a consistent tidyomics style. A package-specific prefix is automatically added based on the calling package name, followed by the message text. Different message types are displayed using appropriate styles from the cli package.
tidy_message(message, type = c("info", "success", "warning", "danger"))
Invisibly returns NULL
. Called for side effects (printing
a styled message to the console).
tidy_message("Loading data...", type = "info")
#> ℹ Console says: Loading data...
tidy_message("Data loaded successfully!", type = "success")
#> ✔ Console says: Data loaded successfully!