is_browser_firefox | R Documentation |
Convenience function that checks if the user's browser is detected as Firefox.
See get_browser()
for details.
is_browser_firefox()
Whether or not this user using Firefox
if (interactive()) {
library(shiny)
ui <- fluidPage(
shinybrowser::detect(),
"Are you using Firefox?",
textOutput("result")
)
server <- function(input, output, session) {
output$result <- renderText({
shinybrowser::is_browser_firefox()
})
}
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.