使用RMarkdown处理子目录

编程入门 行业动态 更新时间:2024-10-14 04:26:18
本文介绍了使用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处理子目录

本文发布于:2023-11-01 13:21:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549433.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:子目录   RMarkdown

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!