Shiny server can't run leaflet packages

32 views
Skip to first unread message

本翔盧

unread,
Nov 25, 2016, 6:21:18 AM11/25/16
to Shiny - Web Framework for R

Shiny server can't run leaflet packages

I set a web server from shiny server on ubuntu server , like that:

http://140.128.197.58:3838/sample-apps/

It can run shiny packages, like that:

http://140.128.197.58:3838/sample-apps/shiny1/

but, It's not work on leaflet packages:

http://140.128.197.58:3838/sample-apps/leaflet1/

[leaflet code]

server.r--------------------------------------------------
 
library(shiny)
library(leaflet)
 
function(input,output){
 output$map <- renderLeaflet({
 leaflet() %>%
 addTiles() %>%
 setView(lng=120.601,lat=24.179,zoom=16)
 })
}
  
ui.r------------------------------------------------------------------------
library(leaflet)
library(shiny)
fluidPage(
 h1("hpc map test"),
 leafletOutput('map',width = "100%",height = 400)
)

[error information]

web error

ERROR: An error has occurred. Check your logs or contact the app author for clarification.



I have no ideal , @@

Joshua Spiewak

unread,
Nov 28, 2016, 10:01:02 AM11/28/16
to 本翔盧, Shiny - Web Framework for R
Sounds like a general question about Shiny, so I am cross-posting to the shiny-discuss group.
This group is for shinyapps.io, a service for hosting Shiny applications.


--
You received this message because you are subscribed to the Google Groups "shinyapps.io Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/0a6fc331-b6fb-4f77-aca9-38d217c0ecd7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages