Created
August 2, 2019 18:44
-
-
Save alandipert/44297b1b5dd6bee55042765416153774 to your computer and use it in GitHub Desktop.
Shiny app with malformed HTML ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
ui <- fluidPage( | |
titlePanel("Shiny App with Malformed HTML"), | |
sidebarLayout( | |
sidebarPanel( | |
sliderInput("bins", | |
"Number of bins:", | |
min = 1, | |
max = 50, | |
value = 30) | |
), | |
mainPanel( | |
tags$p("This app is like any other, except it contains malformed HTML. It's for testing shinyloadtest and shinycannon."), | |
plotOutput("distPlot"), | |
HTML('<blink') | |
) | |
) | |
) | |
server <- function(input, output) { | |
output$distPlot <- renderPlot({ | |
x <- faithful[, 2] | |
bins <- seq(min(x), max(x), length.out = input$bins + 1) | |
hist(x, breaks = bins, col = 'darkgray', border = 'white') | |
}) | |
} | |
shinyApp(ui = ui, server = server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment