# NOT RUN {
if (interactive()) {
library(shiny)
ui <- fluidPage(
shinybrowser::detect(),
"Your browser dimensions:",
textOutput("browser_dim")
)
server <- function(input, output, session) {
output$browser_dim <- renderText({
paste0(shinybrowser::get_width(), "x", shinybrowser::get_height())
})
}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataLab