is_browser_firefox: Is the user using Firefox?

View source: R/get_info.R

is_browser_firefoxR 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)
}

shinybrowser documentation built on May 18, 2022, 5:18 p.m.