This recipe is intended to show the reader how to download the shiny
development package. It also teaches the reader how to load the package and craft an empty web application. Even an empty application is still useful to explain the very basics of working a web app with shiny
.
Once we're looking for a package's development version, we must reach for GitHub, and that said, we need devtools
.
- Look for the
devtools
package. Once it's locked and loaded, we can proceed to make sureshiny
will be installed:
> if(!require(devtools)){install.packages('devtools')} > if(!require(shiny)) > {devtools::install_github('rstudio/shiny')}
- Both
library()
andrequire()
functions can be used to properly load theshiny
package:
> library(shiny)
- Design a simple user interface to get started with our web application:
> ui <- fluidPage( title = 'Hello World', titlePanel('hello_world'), sidebarLayout( sidebarPanel('togges usually...