Files
shiny/_includes/tutorial/ui-and-server.md
2012-07-26 10:16:22 -07:00

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(&quot;Miles Per Gallon&quot;),
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>
![MPG Screenshot](screenshots/mpg-empty.png)