is_browser_firefox {shinybrowser} | R Documentation |
Is the user using Firefox?
Description
Convenience function that checks if the user's browser is detected as Firefox.
See get_browser()
for details.
Usage
is_browser_firefox()
Value
Whether or not this user using Firefox
Examples
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)
}
[Package shinybrowser version 1.0.0 Index]