pandoc document conversion failed with error 67

巧了我就是萌 提交于 2019-12-02 08:26:19

First, instead of self contained: no, self_contained: no allowed me to knit to material locally.

However when publishing the RPubs the images and CSS are gone.
THis is because of how RPubs works, which is to put the document into an iframe.

If you push both a default html_document and a material document from the same Rmd to RPubs and View Source for the frame, you will see that they are completely different. The material page looks like pretty normal HTML and you can see that the image links will be broken because the path to the images are incomplete. For the standard html document on the other hand it has a massive amount of minified javascript that is handling all of these details.

I'm sure there is probably a way to make it work but it would involve reproducing a lot of code from the default html document.

I had the same problem but this solution below worked for me. Just change your markdown top to below and it should work:

---
title: "Test Document"
output: 
  html_document:
    self_contained: no
---

This is a temporary fix, which had been discussed here and given by one of the RStudio guys himself. [Here] (https://github.com/rstudio/rmarkdown/issues/228)

I fixed this issue by removing the rmarkdown package and reinstalling it into my C drive at C:/Program Files/R/R-3.6.1/library. R was having issues going out to a drive starting with the characters \\.

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