Skip to content

Provides one function: include_audio()

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Athospd/audioplayRmd

Repository files navigation

output
html_document
keep_md
true

audioplayRmd

CRAN status

The goal of audioplayRmd is to provide the include_audio() function, the audio version of the knitr::include_graphics.

Installation

install.packages("audioplayRmd")

Example

# Illustrative only. github do not allow widgets =P
library(audioplayRmd)
include_audio("https://www2.cs.uic.edu/~i101/SoundFiles/PinkPanther30.wav")
<div class="audioplayRmd html-widget html-fill-item-overflow-hidden html-fill-item" id="htmlwidget-bbbfa2bdb453858387dd" style="width:1px;height:54px;"></div>
<script type="application/json" data-for="htmlwidget-bbbfa2bdb453858387dd">{"x":{"audio_path":"https://www2.cs.uic.edu/~i101/SoundFiles/PinkPanther30.wav"},"evals":[],"jsHooks":[]}</script>

Comments

  • It should work for Rmarkdown, quarto and shiny.
  • It is not vectorized.
  • Google Chrome might block local files to be loaded (the "Not allowed to load local resource" error).

About

Provides one function: include_audio()

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published