code_snip | R Documentation |
Pulls out a code snippet based on a start and end tags as comments within the code
code_snip(
type,
filename,
startMatches = "START",
endMatches = "END",
includeStart = FALSE,
includeEnd = FALSE,
sep = "\n...\n"
)
type |
the code type |
filename |
the source code file |
startMatches |
a regex that matched start lines |
endMatches |
a regex that matches end lines |
includeStart |
is the regex inclusive of the start line or not |
includeEnd |
is the regex inclusive of the end line or not |
sep |
a seperator |
a text string of the selected code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.