When I try to use R Markdown (in R Studio) with a worksheet, I get an error message and it fails. Here is a simple R Markdown script along with the error I get. I have tried everything I can think of, including: reinstalling and updating various packages, restarting R Studio, updating my R and R Studio, rebooting, creating a simplified script (like below), etc. NOTE. If I run 2-line R code in a regular R script, it displays the map without errors, so I know that the problem is probably not related to the worksheet.
Thanks in advance for any ideas or suggestions.
---
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
source
share