shinybrowser (version 1.0.0)

is_os_mac: 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()

Arguments

Value

Whether or not this user using MacOS

Examples

Run this code
# NOT RUN {
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)
}
# }

Run the code above in your browser using DataLab