View source: R/transform-code.R
separate_chunks | R Documentation |
Identifies and separates the code and text chunks (the latter includes non-R code) within an Rmd or Rnw file, and returns these separately.
separate_chunks(lines, filetype)
lines |
A character vector of lines from an Rmd or Rnw file. |
filetype |
A string indicating the filetype - either 'Rmd' or 'Rnw'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.