# NOT RUN {
## Only run examples in interactive R sessions
if (interactive()) {
ui <- fixedPage(
h3("Simple shinyglide app"),
glide(
screen(
p("First screen."),
),
screenOutput("screen"),
screen(
p("Final screen."),
)
)
)
server <- function(input, output, session) {
output$screen <- renderUI({
p("Second screen.")
})
outputOptions(output, "screen", suspendWhenHidden = FALSE)
}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataCamp Workspace