[问题] 无法用shiny server执行leaflet套件

楼主: rlearner (rlearner)   2016-11-20 16:44:06
[问题类型]:
程式咨询(我想用R 做某件事情,但是我不知道要怎么用R 写出来)
[软件熟悉度]:
入门(写过其他程式,只是对语法不熟悉)
[问题叙述]:
我想在一台Ubuntu server的机子上执行shiny
(测试一)这是在那台机子上测试的shiny页面:
http://140.128.197.58:3838/sample-apps/shiny1/
(测试二)也可以用javascrip 去执行 leaflet页面
http://140.128.197.58:3838/sample-apps/html-samples/leaflet.html
问题在这↓↓
!!!!!!!!!(问题页面)但在一台Ubuntu server的机子上执行shiny
中的leaflet互动地图套件,却无法呈现页面
http://140.128.197.58:3838/sample-apps/leaflet1/
(页面错误讯息)(请复制网页用google chrom开启)
ERROR: An error has occurred. Check your logs or contact the app author for
clarification.
[程式范例]:(leaflet测试码)
程式是用shiny的方法测试的,会分成ui和server两部份
不会太复杂,在rstudio上可成功运作
(请先在rstudio上下载shiny 和leaflet套件)
作者: cywhale (cywhale)   2016-11-20 18:22:00
在浏览器中执行SHINY出问题按F12看console有何错误讯息?
楼主: rlearner (rlearner)   2016-11-20 21:45:00
按f12 console有两个错误讯息:第一个错误讯息failed to load resource: the serverV http://140.128.responded with a status of 404和第二个错误讯息failed load resource: http://140.128.197.58:3838/samthe server responded with a status of 500(internal s请问该如何处理 ??@@
作者: cywhale (cywhale)   2016-11-20 22:29:00
先check一下你放shiny app路径对、资源等可读?比如chmodyour ui.R, server.R to 755..

Links booklink

Contact Us: admin [ a t ] ucptt.com