powered by
Takes a character string and builds a comment so it will be formatted as a section at the specified level in RStudio
FM_build_comment(level = 1, comment_str)
Formatted comment.
Integer (1 (default),2, or 3) indicating the section level of the comment.
Character object.
FM_build_comment(1, "This is a level 1 header") FM_build_comment(2, paste0(rep("Long string repeated.", 5), collapse=" "))
Run the code above in your browser using DataLab