is_browser_chrome: Is the user using Chrome?

View source: R/get_info.R

is_browser_chromeR Documentation

Is the user using Chrome?

Description

Convenience function that checks if the user's browser is detected as Chrome. See get_browser() for details.

Usage

is_browser_chrome()

Value

Whether or not this user using Chrome

Examples

if (interactive()) {
  library(shiny)

  ui <- fluidPage(
    shinybrowser::detect(),
    "Are you using Chrome?",
    textOutput("result")
  )
  server <- function(input, output, session) {
    output$result <- renderText({
      shinybrowser::is_browser_chrome()
    })
  }
  shinyApp(ui, server)
}

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