is_os_mac | R Documentation |
Convenience function that checks if the user's operating system is detected as Mac.
See get_os()
for details.
is_os_mac()
Whether or not this user using MacOS
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.