我正在写一个降价文档,但我想组织我的文件夹,这样就可以更轻松地将所有内容存储到我的文档中。
我想要在文档中放入一些图像,但它们存储在相对于.RMD文档的名为Images
的子文件夹中。
如何设置此项以便我没有此错误:
pandoc: Could not fetch New%20file.png
New file.png: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 67
Execution halted
这是我的代码:
---
title: "Markdown Tutorial"
author: "Me"
date: "August 18, 2016"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, fig.path='Images/')
```
# Creating and Setting Your Document
To create your first markdown document, open up RStudio and clic on File > New File > R Markdown...
![Creating a new Markdow](New file.png)
答案 0 :(得分:1)
将完整路径放在您的Rmarkdown中:
# Creating and Setting Your Document
To create your first markdown document, open up RStudio and clic on File > New File > R Markdown...
![Creating a new Markdow](Images/fig1.png)