r - Shiny App works locally, disconnected from server when deployed globally -


i have shiny app works fine when run on own computer, fails deploy via shinyapps. every time deploy app turns grey , says 'disconnected server'. here output showlogs(), i'm bit confused how interpret it. don't know why having trouble installing packages. appreciated, thanks!

2016-07-29t21:02:49.317725+00:00 shinyapps[115742]:      9: trycatchlist 2016-07-29t21:02:49.317725+00:00 shinyapps[115742]:      8: trycatch 2016-07-29t21:02:49.317726+00:00 shinyapps[115742]:      7: connect$retry 2016-07-29t21:02:49.317726+00:00 shinyapps[115742]:      6: eval 2016-07-29t21:02:49.317729+00:00 shinyapps[115742]:      3: eval 2016-07-29t21:02:49.317729+00:00 shinyapps[115742]:      2: eval.parent 2016-07-29t21:02:49.317729+00:00 shinyapps[115742]:      1: local 2016-07-29t21:02:49.317912+00:00 shinyapps[115742]: error in install.packages(pkgs = x, repos = "http://cran.r-project.org") :  2016-07-29t21:02:49.317914+00:00 shinyapps[115742]:   unable install packages 2016-07-29t21:02:49.317727+00:00 shinyapps[115742]:      5: eval 2016-07-29t21:02:49.317727+00:00 shinyapps[115742]:      4: eval 2016-08-01t14:50:49.315087+00:00 shinyapps[115742]: server version: 0.4.5.2170 2016-08-01t14:50:49.470258+00:00 shinyapps[115742]: starting r process id: '17' 2016-08-01t14:50:49.315120+00:00 shinyapps[115742]: r version: 3.3.0 2016-08-01t14:50:49.486190+00:00 shinyapps[115742]:  2016-08-01t14:50:49.315122+00:00 shinyapps[115742]: shiny version: 0.13.2 2016-08-01t14:50:49.486192+00:00 shinyapps[115742]: listening on http://0.0.0.0:38250 2016-08-01t14:50:49.315126+00:00 shinyapps[115742]: rmarkdown version: na 2016-08-01t14:50:49.315138+00:00 shinyapps[115742]: knitr version: na 2016-08-01t14:50:49.315173+00:00 shinyapps[115742]: jsonlite version: 1.0 2016-08-01t14:50:49.315206+00:00 shinyapps[115742]: rjsonio version: na 2016-08-01t14:50:49.315226+00:00 shinyapps[115742]: htmltools version: 0.3.5 2016-08-01t14:50:49.464757+00:00 shinyapps[115742]: using jsonlite json processing 2016-08-01t14:50:49.470256+00:00 shinyapps[115742]:  2016-08-01t14:50:52.097553+00:00 shinyapps[115742]: loading required package: twitter 2016-08-01t14:50:52.107937+00:00 shinyapps[115742]:     50: preparetwitter [/srv/connect/apps/other-app/server.r#14] 2016-08-01t14:50:52.108128+00:00 shinyapps[115742]:   unable install packages 2016-08-01t14:50:52.098304+00:00 shinyapps[115742]: warning in library(package, lib.loc = lib.loc, character.only = true, logical.return = true,  : 2016-08-01t14:50:52.107937+00:00 shinyapps[115742]:     51: ensurepackage [/srv/connect/apps/other-app/server.r#6] 2016-08-01t14:50:52.107942+00:00 shinyapps[115742]:      4: eval 2016-08-01t14:50:52.098305+00:00 shinyapps[115742]:   there no package called ‘twitter’ 2016-08-01t14:50:52.107936+00:00 shinyapps[115742]:     52: install.packages 2016-08-01t14:50:52.107942+00:00 shinyapps[115742]:      3: eval 2016-08-01t14:50:52.100256+00:00 shinyapps[115742]: installing package ‘/usr/local/lib/r/site-library’ 2016-08-01t14:50:52.107940+00:00 shinyapps[115742]:      7: connect$retry 2016-08-01t14:50:52.107942+00:00 shinyapps[115742]:      2: eval.parent 2016-08-01t14:50:52.100257+00:00 shinyapps[115742]: (as ‘lib’ unspecified) 2016-08-01t14:50:52.107935+00:00 shinyapps[115742]: stack trace (innermost first): 2016-08-01t14:50:52.107941+00:00 shinyapps[115742]:      5: eval 2016-08-01t14:50:52.100629+00:00 shinyapps[115742]: warning in install.packages(pkgs = x, repos = "http://cran.r-project.org") : 2016-08-01t14:50:52.107938+00:00 shinyapps[115742]:     13: runapp 2016-08-01t14:50:52.107939+00:00 shinyapps[115742]:     11: dotrycatch 2016-08-01t14:50:52.107943+00:00 shinyapps[115742]:      1: local 2016-08-01t14:50:52.100630+00:00 shinyapps[115742]:   'lib = "/usr/local/lib/r/site-library"' not writable 2016-08-01t14:50:52.107938+00:00 shinyapps[115742]:     12: fn 2016-08-01t14:50:52.107939+00:00 shinyapps[115742]:     10: trycatchone 2016-08-01t14:50:52.108126+00:00 shinyapps[115742]: error in install.packages(pkgs = x, repos = "http://cran.r-project.org") :  2016-08-01t14:50:52.101513+00:00 shinyapps[115742]: warning: error in install.packages: unable install packages 2016-08-01t14:50:52.107941+00:00 shinyapps[115742]:      6: eval 2016-08-01t14:50:52.107939+00:00 shinyapps[115742]:      9: trycatchlist 2016-08-01t14:50:52.107940+00:00 shinyapps[115742]:      8: trycatch} 

start r session , install required packages application install.packages(). then, stop/stat shiny server.

hope helps.


Comments