Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created August 2, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/44297b1b5dd6bee55042765416153774 to your computer and use it in GitHub Desktop.
Save alandipert/44297b1b5dd6bee55042765416153774 to your computer and use it in GitHub Desktop.
Shiny app with malformed HTML ui
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