str_which_between | R Documentation |
Which lines fall in between a delimeter pattern
str_which_between(string, pattern)
string |
a character vector |
pattern |
a regular expression pattern to look for |
the lines that are contained between pairs of delimiter patterns
string <- " ```{r} # some code ``` Here is more code. ```markdown **bold!** ``` " lines <- unlist(strsplit(string, "\n")) str_which_between(lines, "^```")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.