split_to_tbl | R Documentation |
Group lines of a Rmd or Qmd file by types in a tibble
split_to_tbl(file)
file |
A Rmd or Qmd file path |
A tibble with 6 columns:
type
: type of the part (yaml, heading, inline, block)
label
: label of the part (if any)
params
: parameters of the part (if any)
text
: text of the part (if any)
code
: code of the part (if any)
heading
: heading of the part (if any)
heading_level
: level of the heading (if any)
section
: section of the Rmd file, according to headings (if any)
file <- system.file(
"dev-template-parsing.Rmd",
package = "lightparser"
)
split_to_tbl(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.