embed_xaringan {xaringanExtra} | R Documentation |
Embed a xaringan presentation in a web page
Description
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.
Usage
embed_xaringan(
url,
ratio = "16:9",
border = "2px solid currentColor",
max_width = NULL,
margin = "1em auto",
style = NULL
)
Arguments
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 |
Value
An htmltools::tagList()
with the HTML dependencies required for
share again.
See Also
Examples
# In your slides call
use_share_again()