Hello!
I have a toy example which plays a "beep" on my laptop. However, it does not play the sound from the shinyapps.io server. Here is the code
ui <- fluidPage(
selectInput("Ind","Indipendent Variable",choices = names(mtcars)),
selectInput('Dep',' Dependent Variable',choices = names(mtcars)),
plotOutput('Hist')
)
server <- function(input, output, session) {
library(beepr)
data1 <- reactive({
input$Ind
})
data2 <- reactive({
input$Dep
})
output$Hist <- renderPlot({
req(data1())
beep(3)
hist(mtcars[[data1()]])
})
}
shinyApp(ui, server)
Any suggestions on how to hear the beep from the server, please?
Thanks,
Erin