View source: R/combine_tbl_to_file.R
combine_tbl_to_file | R Documentation |
Combine a parsed tbl Rmd / Qmd file into a new file
combine_tbl_to_file(parsed_tbl, output_file)
parsed_tbl |
A tibble with columns as issued by |
output_file |
A Rmd / Qmd file path to write the new content |
The content of a Rmd / Qmd file as character and the resulting file if output_file is provided.
file <- system.file("dev-template-parsing.Rmd",
package = "lightparser"
)
# split first
tbl_rmd <- split_to_tbl(file)
# apply your filters
tbl_rmd_filtered <- tbl_rmd[-5, ]
# combine then
combine_tbl_to_file(tbl_rmd_filtered, tempfile(fileext = ".Rmd"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.