title: R Shiny Server installation package
body: <p>Possible overlap:<br>
  <a href="https://stackoverflow.com/questions/16065805/packages-missing-in-shiny-server">Packages missing in shiny-server</a><br>
  <a href="https://stackoverflow.com/questions/22298187/r-shiny-shiny-server-issue-with-finding-packages">R shiny / shiny-server - issue with finding packages</a><br>
  <a href="https://stackoverflow.com/questions/22703595/r-how-to-set-the-path-of-install-packages-for-shiny-server-ubuntu">R - How to set the path of install.packages() for shiny server ? - Ubuntu</a>  </p>
  
  <p>I have tried and read all of the above but still cannot get my Shiny Server to work at all. </p>
  
  <p>I followed the installation instructions on <a href="http://www.rstudio.com/shiny/server/install-opensource" rel="nofollow noreferrer">http://www.rstudio.com/shiny/server/install-opensource</a>, including the system-wide install of the shiny package:  </p>
  
  <pre><code>   $ sudo su - \
          -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""
  </code></pre>
  
  <p>Shiny Server is installed properly and running, </p>
  
  <pre><code>~# sudo start shiny-server
  start: Job is already running: shiny-server
  </code></pre>
  
  <p>but when I browse to <code>domain:3838</code> I can see the welcome to shiny page, with error   </p>
  
  <p><code>Error in eval(expr, envir, enclos) : 
    The Shiny package was not found in the library. Ensure that 
  Shiny is installed and is available in the Library of the 
  user you're running this application as.
  Calls: local -&gt; eval.parent -&gt; eval -&gt; eval -&gt; eval -&gt; eval
  Execution halted</code></p>
  
  <p>Opening R, <code>install.packages('shiny', repos='http://cran.rstudio.com/')</code> , and then <code>library(shiny)</code> or any other package, tells me it cannot be found. </p>
  
  <p>I am really quite stuck, not only can I not install/load any packages, I can't seem to find where they are going.</p>
  
  <p><strong>EDIT:</strong><br>
  <code>install.packages(c("geonames"))<br>
  Installing package into ‘/usr/local/lib/R/site-library’
  (as ‘lib’ is unspecified)</code>  </p>
  
  <p><code>&gt; library()<br>
  Warning message:<br>
  In library() :<br>
    libraries ‘/usr/local/lib/R/site-library’, ‘/usr/lib/R/site-library’ contain n                          o packages</code></p>
  
  <p><strong>AND</strong></p>
  
  <pre><code>&gt; installed.packages()[,1:2]
             Package      LibPath
  base       "base"       "/usr/lib/R/library"
  boot       "boot"       "/usr/lib/R/library"
  class      "class"      "/usr/lib/R/library"
  cluster    "cluster"    "/usr/lib/R/library"
  codetools  "codetools"  "/usr/lib/R/library"
  compiler   "compiler"   "/usr/lib/R/library"
  datasets   "datasets"   "/usr/lib/R/library"
  foreign    "foreign"    "/usr/lib/R/library"
  graphics   "graphics"   "/usr/lib/R/library"
  grDevices  "grDevices"  "/usr/lib/R/library"
  grid       "grid"       "/usr/lib/R/library"
  KernSmooth "KernSmooth" "/usr/lib/R/library"
  lattice    "lattice"    "/usr/lib/R/library"
  MASS       "MASS"       "/usr/lib/R/library"
  Matrix     "Matrix"     "/usr/lib/R/library"
  methods    "methods"    "/usr/lib/R/library"
  mgcv       "mgcv"       "/usr/lib/R/library"
  nlme       "nlme"       "/usr/lib/R/library"
  nnet       "nnet"       "/usr/lib/R/library"
  parallel   "parallel"   "/usr/lib/R/library"
  rpart      "rpart"      "/usr/lib/R/library"
  spatial    "spatial"    "/usr/lib/R/library"
  splines    "splines"    "/usr/lib/R/library"
  stats      "stats"      "/usr/lib/R/library"
  stats4     "stats4"     "/usr/lib/R/library"
  survival   "survival"   "/usr/lib/R/library"
  tcltk      "tcltk"      "/usr/lib/R/library"
  tools      "tools"      "/usr/lib/R/library"
  utils      "utils"      "/usr/lib/R/library"
  </code></pre>
  
  <p>Any help is greatly appreciated</p>
  
  <hr>
  
  <p>SessionInfo:  </p>
  
  <p><code>&gt; .libPaths()
  [1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
  [3] "/usr/lib/R/library"</code>  </p>
  
  <pre><code>&gt; sessionInfo()
  R version 3.0.2 (2013-09-25)
  Platform: x86_64-pc-linux-gnu (64-bit)
  
  locale:
   [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
   [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
   [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
   [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
   [9] LC_ADDRESS=C               LC_TELEPHONE=C
  [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base
  </code></pre>