is_device_mobile | R Documentation |
Convenience function that checks if the user's device is detected as mobile.
See get_device()
for details.
is_device_mobile()
Whether or not this user is on mobile
if (interactive()) { library(shiny) ui <- fluidPage( shinybrowser::detect(), "Are you on mobile?", textOutput("result") ) server <- function(input, output, session) { output$result <- renderText({ shinybrowser::is_device_mobile() }) } shinyApp(ui, server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.