includeAudio | R Documentation |
Include Audio media.
includeAudio(
url,
preload = c("metadata", "auto", "none"),
alt = "Your browser does not support the audio element."
)
url |
character. URL of the audio. The media must not be gated. |
preload |
character. One of metadata, auto and none. |
alt |
character. Message displayed when the browser does not support the audio tag. |
An R object of class "knit_asis" (defined in the knitr package), the data of which is the HTML audio tag to insert into the document.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.