Lecture 19
Cornell University
INFO 3312/5312 - Spring 2024
April 9, 2024
Every Shiny app has a webpage that the user visits,
and behind this webpage there is a computer that serves this webpage by running R (or Python!).
When running your app locally, the computer serving your app is your computer.
When your app is deployed, the computer serving your app is a web server.
<div class="form-group shiny-input-container">
<label class="control-label" id="num-label" for="num">Choose a number</label>
<input class="js-range-slider" id="num" data-skin="shiny" data-min="0" data-max="100" data-from="20" data-step="1" data-grid="true" data-grid-num="10" data-grid-snap="false" data-prettify-separator="," data-prettify-enabled="true" data-keyboard="true" data-data-type="number"/>
</div>
Function | Outputs |
---|---|
plotOutput() |
plot |
tableOutput() |
table |
uiOutput() |
Shiny UI element |
textOutput() |
text |
Modern UI toolkit for Shiny based on Bootstrap:
Creation of delightful and customizable Shiny dashboards with cards, value boxes, sidebars, etc.
Use of modern versions of Bootstrap and Bootswatch
Learn more at https://rstudio.github.io/bslib.
Any document can be a Shiny document
Include runtime: shiny
in YAML header
Include a context: server
chunk which replaces server.R
```r
#| context: server
```
ae-16
ae-16
(repo name will be suffixed with your GitHub name).age-rule
folder, and launch the app by opening the app.R
file and clicking on Run App.