is_os_mac {shinybrowser}R Documentation

Is the user on Mac?

Description

Convenience function that checks if the user's operating system is detected as Mac. See get_os() for details.

Usage

is_os_mac()

Value

Whether or not this user using MacOS

Examples

if (interactive()) {
  library(shiny)

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

[Package shinybrowser version 1.0.0 Index]