to_document | R Documentation |
html_document
Copies a file using fs::file_copy()
and changes the output type in the yaml front matter from
html_notebook
to html_document
, removing all other output types.
to_document(file_path, new_path, overwrite = FALSE)
file_path |
Path to the source file |
new_path |
Path to copy the converted file using |
overwrite |
Overwrite file if it exists, passed to |
Path to new file
build_analysis_site()
## Not run:
to_document("notebook.Rmd", "document.Rmd")
to_document("notebooks_dir/notebook.Rmd", "documents_dir")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.