embed_xaringan | R Documentation |
Embed xaringan slides in any HTML web page, such as a blogdown page or an
R Markdown website. The presentation is embedded in a responsive aspect ratio
container for seamless integration with your web page. This feature works
best when combined with use_share_again()
, but embed_xaringan()
can be
used for any xaringan presentation.
embed_xaringan(
url,
ratio = "16:9",
border = "2px solid currentColor",
max_width = NULL,
margin = "1em auto",
style = NULL
)
url |
The URL or path to the presentation to embed. |
ratio |
The ratio of the presentation, either as |
border |
The border style of the embedded |
max_width |
The max width of the |
margin |
The margin placed around the embedded |
style |
Additional CSS |
An htmltools::tagList()
with the HTML dependencies required for
share again.
use_share_again()
# In your slides call
use_share_again()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.