【发布时间】:2017-03-30 18:14:12
【问题描述】:
当我尝试将 R Markdown(在 R Studio 中)与 Leaflet 一起使用时,我收到一个错误并且它失败了。这是一个简单的 R Markdown 脚本以及我遇到的错误。我已经尝试了所有我能想到的方法,包括:重新安装和更新各种软件包、重新启动 R Studio、更新我的 R 和 R Studio、重新启动、创建简化脚本(例如下面的脚本)等。 注意:如果我在常规 R 脚本中运行 2 行 R 代码,它会显示没有错误的地图,所以我知道问题可能与传单无关。
提前感谢您的任何想法或建议。
---
title: "Untitled"
author: "David Wilkes"
date: "March 30, 2017"
output: html_document
---
This is an R Markdown test for leaflet
```{r}
library(leaflet)
leaflet() %>% addTiles %>% setView(lng = 5.0, lat = 51.0, zoom = 6)
```
pandoc.exe: Could not fetch E:\MYDOCU~1\R\R-33~1.3\library\leaflet\HTMLWI~1\lib\leaflet\#default#VML
E:\MYDOCU~1\R\R-33~1.3\library\leaflet\HTMLWI~1\lib\leaflet\: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 67
In addition: Warning message:
running command '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS slides_test.utf8.md --to html --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output slides_test.html --smart --email-obfuscation none --self-contained --standalone --section-divs --template "E:\MYDOCU~1\R\R-33~1.3\library\RMARKD~1\rmd\h\DEFAUL~1.HTM" --no-highlight --variable highlightjs=1 --variable "theme:bootstrap" --include-in-header "C:\Users\ya1dwil1\AppData\Local\Temp\RtmpQFfqPh\rmarkdown-str19f072517d2.html" --mathjax --variable "mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"' had status 67
Execution halted
【问题讨论】:
标签: r leaflet r-markdown