本文介绍了使用RMarkdown处理子目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写降价文档,但我想整理文件夹,以便更轻松地为文档存储所有内容.
I'm writing a markdown document but I want to organize my folders so that it's easier to store all my things for my document.
我有一些要放入文档中的图像,但它们存储在相对于.RMD文档的名为Images的子文件夹中.
I have some images that I want to put in the document but they are stored in a subfolder called Images relative to the .RMD document.
如何设置此项,以免出现此错误:
How can I set this so that I don't have this error:
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)推荐答案
将完整路径放入Rmarkdown中:
Put the full path in your 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)更多推荐
使用RMarkdown处理子目录
发布评论