Rmarkdown HTML Template produces pandoc error 61

这一生的挚爱 提交于 2019-12-17 16:49:38

问题


Rmarkdown seams not working as usual after installing R3.4.3:

When knitting that HTML-Template:

---
title: "Untitled"
output: html_document
---  

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown

I always get the error

'Error: pandoc document conversion failed with error 61'

When setting self_contained: no in the YAML-header knitting works again

Is there anything I can do to get standalone html files ?


回答1:


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.

What solved the problem was to create a Renviron file :

file.edit("~/.Renviron")

and setting there a local path like this R_USER="C:/Users/my_name"

Now knitting with self_contained: yes is possible without error




回答2:


Adding "self_contained: no" should remove the error message.

---
title: "R Notebook"
output: 
  html_document:
    self_contained: no
---

Source: Error when knitting default RMarkdown file in RStudio - @UsamaFoad



来源:https://stackoverflow.com/questions/47669535/rmarkdown-html-template-produces-pandoc-error-61

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!