extract_html_comment | R Documentation |
Extract an html comment block from a file.
extract_html_comment(
filename,
dbegin_regex,
dend_regex = dbegin_regex,
remove_leading_blanks = TRUE,
remove_trailing_blanks = TRUE
)
filename |
name of the html or Rmd file |
dbegin_regex |
delimiter at start of block (regular expression) |
dend_regex |
delimiter at end of block (regular expression) |
remove_leading_blanks |
whether to keep blank lines at the start of the content |
remove_ending_blanks |
whether to keep blank lines at the end of the content |
Will fail if either: there is more than one comment block matching either delimiter; or the ending delimiter occurs before the start delimiter.
character vector with the lines between the delimiters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.