mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-03 11:15:07 -05:00
32 lines
479 B
Markdown
32 lines
479 B
Markdown
|
|
## UI & Server
|
|
|
|
|
|
#### ui.R
|
|
<pre><code class="r">library(shiny)
|
|
|
|
# Define UI for miles per gallon application
|
|
shinyUI(pageWithSidebar(
|
|
|
|
# Application title
|
|
headerPanel("Miles Per Gallon"),
|
|
|
|
sidebarPanel(),
|
|
|
|
mainPanel()
|
|
))
|
|
</code></pre>
|
|
|
|
#### server.R
|
|
<pre><code class="r">library(shiny)
|
|
|
|
# Define server logic required to plot various variables against mpg
|
|
shinyServer(function(input, output) {
|
|
|
|
|
|
})
|
|
</code></pre>
|
|
|
|
|
|

|