Rmarkdown HTML模板产生Pandoc错误61 [英] Rmarkdown HTML Template produces pandoc error 61
问题描述
在安装R3.4.3之后,Rmarkdown接缝无法正常工作:
Rmarkdown seams not working as usual after installing R3.4.3:
编织该HTML模板时:
When knitting that HTML-Template:
---
title: "Untitled"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
我总是会收到错误消息
错误:pandoc文档转换失败,错误61"
'Error: pandoc document conversion failed with error 61'
在YAML标头中设置self_contained: no
时
编织再次起作用
When setting self_contained: no
in the YAML-header
knitting works again
我可以做些什么来获取独立的html文件吗?
Is there anything I can do to get standalone html files ?
推荐答案
最后,我认为找到了一种解决方案,该解决方案在我的新笔记本电脑上安装R 3.4.4和RStudio 1.1.442并遇到相同的麻烦之后即可.
Finally I think found a solution which works after installing R 3.4.4 and RStudio 1.1.442 at my new Laptop and getting the same troubles.
解决问题的方法是创建一个Renviron文件:
What solved the problem was to create a Renviron file :
file.edit("~/.Renviron")
并在其中设置这样的本地路径R_USER="C:/Users/my_name"
and setting there a local path like this R_USER="C:/Users/my_name"
现在可以用self_contained: yes
进行编织了
这篇关于Rmarkdown HTML模板产生Pandoc错误61的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!