is_os_windows: Is the user on Windows?

View source: R/get_info.R

is_os_windowsR Documentation

Is the user on Windows?

Description

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

Usage

is_os_windows()

Value

Whether or not this user using Windows

Examples

if (interactive()) {
  library(shiny)

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

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