powered by
Group lines of a Rmd or Qmd file by types in a tibble
split_to_tbl(file)
A tibble with 6 columns:
type: type of the part (yaml, heading, inline, block)
type
label: label of the part (if any)
label
params: parameters of the part (if any)
params
text: text of the part (if any)
text
code: code of the part (if any)
code
heading: heading of the part (if any)
heading
heading_level: level of the heading (if any)
heading_level
section: section of the Rmd file, according to headings (if any)
section
A Rmd or Qmd file path
file <- system.file( "dev-template-parsing.Rmd", package = "lightparser" ) split_to_tbl(file)
Run the code above in your browser using DataLab