title: Installing required packages in Shiny app
body: <p>I have a shiny app that I want everybody to be able to run using runGitHub with the only pre requisite of having the shiny packaged installed.</p>
  
  <p>In order for all the needed packages to be installed and loaded in the person´s computer the first time he runs the program, my code in <strong>server.R</strong> starts with:</p>
  
  <pre><code>if (!require("pacman")) install.packages("pacman")
  pacman::p_load("maptools","dplyr","data.table","reshape2","ggplot2","plyr","rgdal","rgeos","shinyjs","scales","DT","readxl")
  
  library(maptools)
  library(dplyr)
  library(data.table)
  library(reshape2)
  library(ggplot2)
  library(plyr)
  library(rgdal)
  library(rgeos)
  library(shinyjs)
  library(scales)
  library(DT)
  library(readxl) 
  </code></pre>
  
  <p>Nevertheless, I just tested it in someone elses pc and the following error shows up: </p>
  
  <pre><code>Error in library(shinyjs) : there is no package called ‘shinyjs’
  </code></pre>
  
  <p>After I installed shinyjs manually, the following showed up:</p>
  
  <pre><code>Warning: Error in library: there is no package called ‘maptools’
  Stack trace (innermost first):
  46: library
  45: eval [helper.R#1]
  44: eval
  43: withVisible
  42: source
   3: runApp
   2: runUrl
   1: runGitHub
  Error in library(maptools) : there is no package called ‘maptools’
  </code></pre>
  
  <p>And so on. This is my first shiny app, so I don't know how am I supposed to achieve this. My complete code can be accessed by running:</p>
  
  <pre><code>runGitHub("Mapas_BBVA_municipios","IArchondo",display.mode="showcase") 
  </code></pre>