5.4 Creating apps
- Every shiny app has the same six lines of code.
library(shiny)
ui <- fluidPage(
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
Type
shinyapp
inapp.R
and you will see prompt to insert snippet (Shift + Tab).If you are using RStudio, you can create Shiny Web Application project easily via the file menu.
File
>>New Project
>>New Directory
>>Shiny Web Application