is_browser_chrome {shinybrowser} | R 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)
}
[Package shinybrowser version 1.0.0 Index]