View source: R/extract_prose.R
extract_prose | R Documentation |
This function takes a file path as input and reads the contents of the file. It then removes code chunks, HTML comments, YAML metadata, inline code, inline attributes, colons, and excess whitespace to extract the prose from the file.
extract_prose(file_path)
file_path |
The path to the file to extract prose from. |
A character vector containing the extracted prose.
## Not run:
file_path <- "/path/to/file.Rmd"
prose <- extract_prose(file_path)
print(prose)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.