create_temp_bundle | R Documentation |
Copy files from a shared location; optionally overwrite YAML
create_temp_bundle(
input,
default_yaml = pkg_resource("rmd_files/web_defaults.yml"),
pre_content = c(pkg_resource("rmd_files/web_opts_chunk.Rmd"),
pkg_resource("rmd_files/web_page_toc.Rmd")),
post_content = c(pkg_resource("rmd_files/web_reference_block.Rmd")),
temp_dir = tempdir()
)
input |
A path to a .Rmd file. |
default_yaml |
A path to a .yml file containing default key-value pairs. Values will be overwritten by matching values in input header. |
pre_content |
A path to a file containing text to be inserted after the YAML header and before existing input content. |
post_content |
A path to a file containing text to be inserted after existing input content. |
temp_dir |
A path where the modified page bundle (directory) will be created |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.