View source: R/get_example_lines.R
get_example_lines | R Documentation |
User provides the source code file path. This a a simplistic
function that simply returns lines between @examples
and the next
line that starts with #' @
, or anything not #'
.
get_example_lines(file = stdin())
file |
character vector of length 1 with the file to extract example code from. |
Character vector with one lines from the
examples
section of the code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.