mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Remove single file example
The example will be moved to the gallery.
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
Title: Single-file shiny app
|
||||
Author: RStudio, Inc.
|
||||
AuthorUrl: http://www.rstudio.com/
|
||||
License: MIT
|
||||
DisplayMode: Showcase
|
||||
Tags: getting-started
|
||||
Type: Shiny
|
||||
@@ -1,20 +0,0 @@
|
||||
# Global variables can go here
|
||||
n <- 200
|
||||
|
||||
|
||||
# Define the UI
|
||||
ui <- bootstrapPage(
|
||||
numericInput('n', 'Number of obs', n),
|
||||
plotOutput('plot')
|
||||
)
|
||||
|
||||
|
||||
# Define the server code
|
||||
server <- function(input, output) {
|
||||
output$plot <- renderPlot({
|
||||
hist(runif(input$n))
|
||||
})
|
||||
}
|
||||
|
||||
# Return a Shiny app object
|
||||
shinyApp(ui = ui, server = server)
|
||||
Reference in New Issue
Block a user