Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'

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

like image 925
Ron Avatar asked Dec 06 '17 08:12

Ron


2 Answers

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

like image 85
Ron Avatar answered Nov 01 '22 07:11

Ron


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

like image 4
datalifenyc Avatar answered Nov 01 '22 07:11

datalifenyc