howler-shiny {howler} | R Documentation |
Shiny bindings for howler
Description
Output and render functions for using howler within Shiny applications and interactive Rmd documents.
Usage
howlerOutput(outputId)
renderHowler(expr, env = parent.frame(), quoted = FALSE)
Arguments
outputId |
output variable to read from |
expr |
An expression that generates a howler |
env |
The environment in which to evaluate |
quoted |
Is |
Value
An output or render function that enables the use of the widget within Shiny applications.
Examples
if (interactive()) {
library(shiny)
ui <- fluidPage(
title = "howler.js Player",
howlerOutput("howler"),
howlerPlayPauseButton("howler")
)
server <- function(input, output) {
output$howler <- renderHowler(howler(c(sound = "audio/sound.mp3")))
}
shinyApp(ui, server)
}
[Package howler version 0.3.0 Index]