Rmarkdown HTML Template produces pandoc error 61
Asked Answered
R

3

8

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'

enter image description here

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

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

session_info

Recoup answered 6/12, 2017 at 8:5 Comment(4)
Do you use a custom HTML template? It seems that pandoc tries to download jQuery from your server, but cannot find it there.Incubate
@ tarleb: No, I use the standard Rmarkdown- html template which is located at that path: system.file("rmd/h/default.html", package="rmarkdown") [1] "\\\\apg-gf.org/HE$/userdata/xxx/Documents/R/win-library/3.4/rmarkdown/rmd/h/default.html"Recoup
@Recoup I'm running into this same issue on R 3.4.4 on Windows. Did you ever find a solution?Denominationalism
I had this same problem. For some reason, flexdashboard was unable to load up the logo I had listed in the YAML header. Previously this just gave a warning with no problem, but then it lead to error 61. I deleted the logo line, and everything runs normally. However the text was similar to your "could not fetch" text.Heavensent
R
5

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

Recoup answered 26/3, 2018 at 18:46 Comment(1)
I could not knit to neither html nor pdf. I follow your suggestion and things are working now.Metabolize
C
4

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

Coinsurance answered 19/2, 2019 at 22:31 Comment(0)
A
0

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.

Antiproton answered 16/5, 2021 at 14:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.