1. As first we must install “shiny” package in R studio:
    > install.packages("shiny")
    also installing the dependencies ‘httpuv’, ‘mime’, ‘jsonlite’, ‘xtable’, ‘digest’, ‘htmltools’
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/httpuv_1.3.3.zip'
    Content type 'application/zip' length 871787 bytes (851 KB)
    downloaded 851 KB
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/mime_0.4.zip'
    Content type 'application/zip' length 37392 bytes (36 KB)
    downloaded 36 KB
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/jsonlite_0.9.17.zip'
    Content type 'application/zip' length 1009809 bytes (986 KB)
    downloaded 986 KB
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/xtable_1.8-0.zip'
    Content type 'application/zip' length 326839 bytes (319 KB)
    downloaded 319 KB
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/digest_0.6.8.zip'
    Content type 'application/zip' length 151939 bytes (148 KB)
    downloaded 148 KB
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/htmltools_0.2.6.zip'
    Content type 'application/zip' length 86181 bytes (84 KB)
    downloaded 84 KB
    
    trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/shiny_0.12.2.zip'
    Content type 'application/zip' length 1867472 bytes (1.8 MB)
    downloaded 1.8 MB
    
    package ‘httpuv’ successfully unpacked and MD5 sums checked
    package ‘mime’ successfully unpacked and MD5 sums checked
    package ‘jsonlite’ successfully unpacked and MD5 sums checked
    package ‘xtable’ successfully unpacked and MD5 sums checked
    package ‘digest’ successfully unpacked and MD5 sums checked
    package ‘htmltools’ successfully unpacked and MD5 sums checked
    package ‘shiny’ successfully unpacked and MD5 sums checked
    
    The downloaded binary packages are in
    	C:\Users\TestUser\AppData\Local\Temp\RtmpoDEhoY\downloaded_packages
    
  2. Next step –
    • Old approach – we must create files “ui.R” (user interface) and “server.R” (instructions for server how to use input from user).
      “ui.R” – describes layout, widgets for inputs, menus, graphs etc.
    • New approach – everything in one file “app.R”, content of old “ui.R” file in “ui” variable, content of “server.R” file in “server” variable.
      Run of application: “shinyApp(ui, server)