[問題] web server上建立r-leaflet套件

看板Web_Design作者 (rlearner)時間8年前 (2016/12/14 11:49), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
這個問題不知能不在該板題問@@ [環境架設/問題簡敘] 我在實體機上ubuntu上架設了shiny server 測試用的shiny範例程式所放路徑: $cd /opt/shiny-server/samples/sample-apps 並放了幾個範例程式,如下 http://140.128.197.58:3838/sample-apps/ (問題所在!!!!)但在嘗試leaflet地圖套件時出錯: http://140.128.197.58:3838/sample-apps/leaflet1/ ps.不過leaflet應用在js上就可以了@_@ http://140.128.197.58:3838/sample-apps/html-samples/leaflet.html [程式碼] 以下是 http://140.128.197.58:3838/sample-apps/leaflet1/ 的程式碼,直接放上rstudio跑是沒問題的 ui.R------------------------------------------ library(leaflet) library(shiny) fluidPage( h1("hpc map test"), leafletOutput('map',width = "100%",height = 800) ) server.R---------------------------------- library(shiny) library(leaflet) function(input,output){ output$map <- renderLeaflet({ leaflet() %>% addTiles() %>% setView(lng=120.601,lat=24.179,zoom=16) }) } [錯誤訊息] 1.網頁訊息 點入剛剛講的 http://140.128.197.58:3838/sample-apps/leaflet1/ 的網址會出現如下的錯誤訊息: ERROR: An error has occurred. Check your logs or contact the app author for clarification. 2.按F12選console,出現錯誤訊息 Failed to load resource: the server responded with a status of 500 (Internal Server Error) 3.去伺服器進入cd /var/log/shiny-server 並無leaflet相關的錯訊息訊 [環境版本] ubuntu 14.04.05 shiny-server 1.5.1 R 3.3.2 leaflet 1.0.1 不知道該如何處理,求解QQ!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.128.101.143 ※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1481687379.A.AD3.html
文章代碼(AID): #1OKC5JhJ (Web_Design)
文章代碼(AID): #1OKC5JhJ (Web_Design)