Formats text as a monospace-style code comment block. Useful for creating visually distinct section headers in scripts.
Examples
# Create a section header
cat(comment_block("Data Import"))
#> # #############################################################################
#> # Data Import #
#> # #############################################################################
# ############################################################################
# # Data Import #
# ############################################################################
# Shorter width
cat(comment_block("Setup", width = 40))
#> # #####################################
#> # Setup #
#> # #####################################