简体   繁体   中英

Rmarkdown HTML Template produces pandoc error 61

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 ?

会话信息

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

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

My .Rmd knitted completely fine, but all of a sudden stopped knitting.

The reason was because knittr was trying to fetch a badge

Could not fetch https://www.r-pkg.org/badges/version/rawr

And so it errored.

When I visited https://www.r-pkg.org/ it was also unavailable (even in the browser).

So the solution in this case is to just wait a few moments until the website is back up and running, then try again.

UPDATE: I tried 5 minutes' later, and it succeeded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM