Error on publishing my app in shinyio

1,971 views
Skip to first unread message

Sophia Ma

unread,
Jul 14, 2016, 6:17:40 AM7/14/16
to ShinyApps Users

Hi, 
Here is my problem. I succeed to run my shiny app on my computer but when I upload it into shiny.io, I got the error message. Here is the webpage link. I can not figure out how to solve this error: 

Error in value[[3L]](cond) : invalid multibyte string 37 Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

Also I check the log:

2016-07-14T04:36:57.520425+00:00 shinyapps[114335]: jsonlite version: 1.0
2016-07-14T04:36:57.520465+00:00 shinyapps[114335]: RJSONIO version: NA
2016-07-14T04:36:57.520468+00:00 shinyapps[114335]: htmltools version: 0.3
2016-07-14T04:36:57.710729+00:00 shinyapps[114335]: Using jsonlite for JSON processing
2016-07-14T04:36:57.714368+00:00 shinyapps[114335]: 
2016-07-14T04:36:57.714371+00:00 shinyapps[114335]: Starting R with process ID: '17'
2016-07-14T04:36:57.776130+00:00 shinyapps[114335]: Error in value[[3L]](cond) : invalid multibyte string 37
2016-07-14T04:36:57.776132+00:00 shinyapps[114335]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2016-07-14T04:36:57.776170+00:00 shinyapps[114335]: Execution halted
2016-07-14T04:38:28.819686+00:00 shinyapps[114335]: Server version: 0.4.4.1986
2016-07-14T04:38:28.819732+00:00 shinyapps[114335]: R version: 3.2.3
2016-07-14T04:38:28.819772+00:00 shinyapps[114335]: htmltools version: 0.3
2016-07-14T04:38:28.819740+00:00 shinyapps[114335]: shiny version: 0.13.2
2016-07-14T04:38:29.015798+00:00 shinyapps[114335]: Starting R with process ID: '17'
2016-07-14T04:38:28.819747+00:00 shinyapps[114335]: rmarkdown version: NA
2016-07-14T04:38:28.819748+00:00 shinyapps[114335]: knitr version: NA
2016-07-14T04:38:28.819760+00:00 shinyapps[114335]: jsonlite version: 1.0
2016-07-14T04:38:28.819761+00:00 shinyapps[114335]: RJSONIO version: NA
2016-07-14T04:38:29.011962+00:00 shinyapps[114335]: Using jsonlite for JSON processing
2016-07-14T04:38:29.015796+00:00 shinyapps[114335]: 
2016-07-14T04:38:29.078194+00:00 shinyapps[114335]: Error in value[[3L]](cond) : invalid multibyte string 37
2016-07-14T04:38:29.078196+00:00 shinyapps[114335]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2016-07-14T04:38:29.078198+00:00 shinyapps[114335]: Execution halted
2016-07-14T04:46:22.824011+00:00 shinyapps[114335]: Server version: 0.4.4.1986
2016-07-14T04:46:23.018560+00:00 shinyapps[114335]: Starting R with process ID: '39'
2016-07-14T04:46:22.824063+00:00 shinyapps[114335]: R version: 3.2.3
2016-07-14T04:46:23.018557+00:00 shinyapps[114335]: 
2016-07-14T04:46:22.824071+00:00 shinyapps[114335]: shiny version: 0.13.2
2016-07-14T04:46:22.824091+00:00 shinyapps[114335]: rmarkdown version: NA
2016-07-14T04:46:22.824124+00:00 shinyapps[114335]: knitr version: NA
2016-07-14T04:46:22.824171+00:00 shinyapps[114335]: jsonlite version: 1.0
2016-07-14T04:46:22.824191+00:00 shinyapps[114335]: RJSONIO version: NA
2016-07-14T04:46:22.824235+00:00 shinyapps[114335]: htmltools version: 0.3
2016-07-14T04:46:23.014862+00:00 shinyapps[114335]: Using jsonlite for JSON processing
2016-07-14T04:46:23.080644+00:00 shinyapps[114335]: Error in value[[3L]](cond) : invalid multibyte string 37
2016-07-14T04:46:23.080646+00:00 shinyapps[114335]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2016-07-14T04:46:23.080685+00:00 shinyapps[114335]: Execution halted
2016-07-14T04:55:22.936546+00:00 shinyapps[114335]: Server version: 0.4.4.1986
2016-07-14T04:55:22.936626+00:00 shinyapps[114335]: R version: 3.2.3
2016-07-14T04:55:22.936634+00:00 shinyapps[114335]: shiny version: 0.13.2
2016-07-14T04:55:22.936640+00:00 shinyapps[114335]: rmarkdown version: NA
2016-07-14T04:55:22.936641+00:00 shinyapps[114335]: knitr version: NA
2016-07-14T04:55:22.936642+00:00 shinyapps[114335]: jsonlite version: 1.0
2016-07-14T04:55:22.936676+00:00 shinyapps[114335]: RJSONIO version: NA
2016-07-14T04:55:22.936677+00:00 shinyapps[114335]: htmltools version: 0.3
2016-07-14T04:55:23.139549+00:00 shinyapps[114335]: Using jsonlite for JSON processing
2016-07-14T04:55:23.143797+00:00 shinyapps[114335]: 
2016-07-14T04:55:23.143799+00:00 shinyapps[114335]: Starting R with process ID: '17'
2016-07-14T04:55:23.208311+00:00 shinyapps[114335]: Error in value[[3L]](cond) : invalid multibyte string 37
2016-07-14T04:55:23.208313+00:00 shinyapps[114335]: Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
2016-07-14T04:55:23.208332+00:00 shinyapps[114335]: Execution halted


Thanks in advance!

Joshua Spiewak

unread,
Jul 14, 2016, 10:44:49 AM7/14/16
to ShinyApps Users
My apologies for the less than useful error message.

After digging into this, I think the issue is that you have a data file whose encoding is 'latin1', which is likely the default for your local environment which is why it works there. On shinyapps.io the default is UTF-8. You can either convert the file, or when you load it specify the encoding.

I will be filing a ticket internally so that this error is reported in a way that makes it more obvious what is going wrong.

Joshua Spiewak

unread,
Jul 14, 2016, 11:02:20 AM7/14/16
to ShinyApps Users
This article might be useful.

This ticket I opened is with the shiny package itself, and you are welcome to watch it.

Brian Mwangi

unread,
Sep 3, 2018, 5:45:16 AM9/3/18
to shinyapps.io Users
I am loading shape files from my dropox. I have encoded the whole R file & specific shape files to UTF-8 but still the same error as shown persists.

eafpres

unread,
Sep 4, 2018, 12:01:55 AM9/4/18
to shinyapps.io Users
Have you tried specifying the encoding explicitly in the file read operation? What function are you using to read the file?
Reply all
Reply to author
Forward
0 new messages