I have run shinyAPP in server, some APP doesn't work and error message show as picture, I don't know how to solve it.
Asked
Active
Viewed 280 times
-2
-
1Welcome to Stack Overflow! Please read the info about [how to ask a good question](http://stackoverflow.com/help/how-to-ask) and how to give a [reproducible example](http://stackoverflow.com/questions/5963269). This will make it much easier for others to help you. – zx8754 Jun 22 '16 at 08:28
-
error message"Diagnostic information has been dumped to the JavaScript error console." – xiukun Jun 22 '16 at 08:29
-
Locate the error in your web browser, For Chrome: https://developer.chrome.com/devtools/docs/console For Firefox: https://developer.mozilla.org/en-US/docs/Tools/Web_Console – Sumedh Jun 22 '16 at 08:30
-
2If we can't reproduce the error, we can't help. – zx8754 Jun 22 '16 at 08:30
-
I don't know how to insert image,haha~. can u visit http://xiukun.wang:3838/gps/ ?? – xiukun Jun 22 '16 at 08:42
-
1We can see screenshot error image on the link in your post, we need your code and maybe data to reproduce the same error. – zx8754 Jun 22 '16 at 08:54
-
`library(shiny) library(leaflet) library(dplyr) shinyServer(function(input, output) { output$values <- renderLeaflet({ inFile <- input$file1 if (is.null(inFile)) return(NULL) dat <- read.csv(inFile$datapath, header=input$header, sep=input$sep, quote=input$quote) p <- leaflet() %>% addTiles() %>% addCircles(lng=dat$longitude, lat=dat$latitude , popup = dat$member_id) }) })` – xiukun Jun 22 '16 at 09:18
1 Answers
0
It seems there is no dplyr package installed in the library used by the R process which your shiny server is using.
from browser console:
Listening on http://127.0.0.1:56037
Warning: Error in library: there is no package called ‘dplyr’
Stack trace (innermost first):
38: library
1: runApp
Error in library(dplyr) : there is no package called ‘dplyr’
Ensure that you have the package installed in the library folder used by shiny server. E.g. in my case I have separate R used by RStudio so that development is separated from live app.
My library sits in usr//lib64//R//library
therefore in linux i will run R as superuser sudo R
and then install.packages("dplyr", lib="usr//lib64//R//library//")

PeterS
- 136
- 5
-
-
The error is definitely due to missing library, i have tested on my server and adding something like `library(aareshape2)` will return same error and cause the app to fail. Which OS are you using on your server? My best guess is we need to check for installed packages, which library path they are installed in and if the user running the shiny app has permissions to read given folder/files – PeterS Jun 23 '16 at 08:43
-
haha, it is diffcult to me. I don't know if shiny App has permissions. it is first time to run APP in ubutun shinyserver(I can run shiny default example).do you have good idea?(my package lib is "/usr/local/lib/R/site-library","/usr/lib/R/site-library","/usr/lib/R/library") – xiukun Jun 24 '16 at 02:07