Javascript 从R.S.获取传单簇信息

Javascript 从R.S.获取传单簇信息,javascript,r,shiny,leaflet,Javascript,R,Shiny,Leaflet,我正在使用传单作为我的RShiny应用程序的映射和标记群集服务。由于R的传单包没有marker clustering功能(),我不得不将其作为附加插件导入: registerPlugin <- function(map, plugin) { map$dependencies <- c(map$dependencies, list(plugin)) map } clusterPlugin<-htmlDependency("Leaflet.markercluster", "

我正在使用传单作为我的RShiny应用程序的映射和标记群集服务。由于R的传单包没有marker clustering功能(),我不得不将其作为附加插件导入:

   registerPlugin <- function(map, plugin) {
map$dependencies <- c(map$dependencies, list(plugin))
map
}

clusterPlugin<-htmlDependency("Leaflet.markercluster", "1.0.0",
                            src = c(href = "https://github.com/Leaflet/Leaflet.markercluster/tree/master/build"),
                            script = "build.js"
)

output$map <- renderLeaflet({
(leaflet() %>% setView(lng = 10.23, lat = 50.18, zoom = 5)) %>% 
  addTiles()%>%
  setView(10.23, 50.18, zoom = 5) %>%
  registerPlugin(clusterPlugin) %>%
  addMarkers(alldata$Longitude, alldata$Latitude, clusterOptions = markerClusterOptions())
})    
registerPlugin%
registerPlugin(clusterPlugin)%>%
addMarkers(alldata$经度,alldata$纬度,clusterOptions=markerClusterOptions())
})    

我的问题是,如何提取高亮显示的簇中标记的编号和名称等信息?在没有专用包的情况下,如何使用R与JavaScript通信?我正在考虑使用右键单击集群来查看可能的选项