diff_rmd | R Documentation |
Render the differences between two rmarkdown files
diff_rmd(current_file, reference_file = "HEAD", show = "raw", output_format = "html_document", keep_intermediate = FALSE, quiet = TRUE, css = diff_rmd_css()) diff_rmd_css()
current_file |
string: path to file after changes |
reference_file |
string: path to file before changes |
show |
string: |
output_format |
string: format of the output file (currently only |
keep_intermediate |
logical: keep the intermediate rmarkdown file? |
quiet |
logical: if |
css |
character vector: css specification to apply to changed sections. Defaults to |
A list containing one or more elements rendered
(the path to the rendered diff file, if show="rendered"
), intermediate
(the path to the intermediate file, if keep_intermediate = TRUE
), and raw
(if show="raw"
)
The path to the rendered file showing the differences
## Not run: result <- diff_rmd(my_current_file, my_reference_file) browseURL(result) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.