ubuntu server上建立r-leaflet套件 - Linux

By Hedy
at 2016-12-14T11:10
at 2016-12-14T11:10
Table of Contents
這個問題不知能不在該板題問@@
[環境架設/問題簡敘]
我在實體機上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!!
--
[環境架設/問題簡敘]
我在實體機上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!!
--
Tags:
Linux
All Comments

By Lauren
at 2016-12-18T21:50
at 2016-12-18T21:50

By Thomas
at 2016-12-22T13:53
at 2016-12-22T13:53

By Harry
at 2016-12-22T20:47
at 2016-12-22T20:47

By Mason
at 2016-12-26T23:51
at 2016-12-26T23:51

By Ivy
at 2016-12-31T19:55
at 2016-12-31T19:55

By Bennie
at 2017-01-02T17:57
at 2017-01-02T17:57
Related Posts
SSH連線加密技術疑問

By Puput
at 2016-12-14T10:14
at 2016-12-14T10:14
SSH連線加密技術疑問

By Rachel
at 2016-12-13T07:20
at 2016-12-13T07:20
健康存摺是否支援Linux

By Ina
at 2016-12-12T19:00
at 2016-12-12T19:00
無線網卡無法啟用

By Emma
at 2016-12-12T18:54
at 2016-12-12T18:54
SSH取代帳號密碼登入的金鑰驗證流程

By Aaliyah
at 2016-12-12T17:57
at 2016-12-12T17:57