Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions inst/examples/01_hello/app.R
Original file line number Diff line number Diff line change
@@ -1,34 +1,24 @@
library(bslib)
library(shiny)

# Define UI for app that draws a histogram ----
ui <- fluidPage(
ui <- page_sidebar(

# App title ----
titlePanel("Hello Shiny!"),

# Sidebar layout with input and output definitions ----
sidebarLayout(
# Output: Histogram ----
plotOutput(outputId = "distPlot"),

# Sidebar panel for inputs ----
sidebarPanel(

# Input: Slider for the number of bins ----
# Sidebar panel for inputs ----
sidebar = sidebar(
# Input: Slider for the number of bins ----
sliderInput(inputId = "bins",
label = "Number of bins:",
min = 1,
max = 50,
value = 30)
),

),

# Main panel for displaying outputs ----
mainPanel(

# Output: Histogram ----
plotOutput(outputId = "distPlot")

)
)
# App title ----
title = "Hello Shiny!"
)

# Define server logic required to draw a histogram ----
Expand Down