title | subtitle | author | job | framework | highlighter | hitheme | widgets | mode | knit |
---|---|---|---|---|---|---|---|---|---|
Bio builder |
My first Shiny App |
Deepak Trivedi |
Creater |
io2012 |
highlight.js |
tomorrow |
selfcontained |
slidify::knit2slides |
- Bio builder is my first Shiny App
- My objective here was to use as many input and output methods as possible
- The following slides will outline the input and output methods used
The URL to the app is https://deeptrivia.shinyapps.io/buildbio/
--- .class #id
Here is a list of all the input methods used.
- textInput - Used to input strings - Firstname and Lastname
- sliderInput - Slider used to input age.
- radioButtons - Used to input Sex
- fileInput - Used to upload photo
- selectInput - Dropdown menu used to input educational level
- dateInput - Used to input graduation date
--- .class #id
Here is a list of all the output methods used.
- textOutput - Used to output strings
- imageOutput - Used to output images
- uiOutput - Used to output a string or image dynamically based on input
Server.R does the following:
- Concatenates various inputs to product output strings
- Processes uploaded image for uiOutput
- Performs time since degree calculation as shown below.
todaysdate <- Sys.Date()
inputdate <- as.Date("2000-05-01")
outstring<- paste("Time since degree:",as.character(as.numeric(todaysdate - inputdate)),"days" ,sep=" ")
outstring
## [1] "Time since degree: 5767 days"
--- .class #id
This short app demonstrates a bunch of different input and output methods, as well as some background computations (such as an elapsed time calculation.)
This is a very efficient way to deploy responsive apps.
--- .class #id