Combine a parsed tbl Rmd / Qmd file into a new file
Usagecombine_tbl_to_file(parsed_tbl, output_file)
Arguments
A tibble with columns as issued by split_to_tbl()
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.
Examplesfile <- 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"))
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4