is_os_mac: Is the user on Mac?

View source: R/get_info.R

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

daattali/shinybrowser documentation built on Aug. 21, 2024, 6:12 a.m.