【发布时间】:2020-02-10 10:55:04
【问题描述】:
我最近发现了传单包和 Flexdashboard,单独使用它们没有任何问题。 但是,当我尝试将传单地图集成到我的 Flexdashboard 中时,当我尝试运行我的 .Rmd 时没有任何反应 查看器卡在“请稍候...”屏幕...
我试图简化一切,只留下几个包和一个 renderLeaflet 行,但它仍然无法加载。
当使用带闪亮但没有 Flexdashboard 的传单时,我没有加载问题。将 Flexdashboard 与其他功能一起使用时也不会。
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
{r setup, include=FALSE}
library(flexdashboard)
library(tidyverse)
library(leaflet)
library(shiny)
Column {data-width=500}
-----------------------------------------------------------------------
{r}
renderLeaflet({leaflet() %>%
addTiles() %>%
setView(lng = 2.342013, lat = 48.862871, zoom = 12)
})
等了一会儿,我什么也没有得到,甚至没有错误消息。 我错过了什么?是否有我应该寻找的更新?
感谢您的帮助
【问题讨论】:
-
我似乎无法重现这一点,您的代码正在我的 R 实例中呈现 flexdashboard 和传单(几秒钟后)。 (R 版本 3.6.0 测试版)。也许尝试更新所有包并在新的 R 实例中运行?
标签: r shiny leaflet r-markdown flexdashboard