to_html | R Documentation |
Render xaringan or Quarto slides as an html file. In generally, it is the
same thing as rmarkdown::render()
or quarto::quarto_render()
except that
the self_contained
option is forced to TRUE
if the HTML file is built
into a directory other than the one containing from
.
to_html(from, to = NULL, self_contained = FALSE, render_args = NULL)
from |
Path to an |
to |
The name of the output file. If using |
self_contained |
Should the output file be a self-contained HTML file
where all images, CSS and JavaScript are included directly in the output
file? This option, when |
render_args |
A list of arguments passed to |
Slides are rendered as an .html
file.
with_example("slides.Rmd", { # Render html from Rmd file to_html("slides.Rmd") })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.