我指的是由R4.2.1在Windows 11上执行的包rmdformats 1.0.4提供的模板readthedown
我使用下面的YAML部分运行一个旧脚本
---
title: "Title"
subtitle: "SubTitle"
author: "Author"
date: "(`r format(Sys.time(), '%d %b, %Y')`)"
output:
rmdformats::readthedown:
toc_depth: 5
self_contained: true
thumbnails: false
lightbox: true
gallery: true
highlight: tango
css: custom.css
---编译过程结束,没有错误,但生成输出文件(Ex )。( report.html)和以Ex命名的相关文件夹。report_files,它包含由重标记块生成的所有运行时映像。
几个版本更新之前,图像文件夹没有生成。
self_contained: true这句话似乎是蒙面的还是未使用的。
发布于 2022-10-06 17:59:14
如果在设置块中将全局选项cache设置为TRUE,则删除该选项(然后默认为FALSE)或将该选项设置为FALSE。
将cache设置为TRUE可能是生成包含必要图像的文件夹的原因之一。
因此,如果您运行以下reprex,您将看到在您的工作目录中没有创建额外的文件夹。
Reprex
---
title: "Title"
subtitle: "SubTitle"
author: "Author"
date: "(`r format(Sys.time(), '%d %b, %Y')`)"
output:
rmdformats::readthedown:
toc_depth: 5
self_contained: true
thumbnails: false
lightbox: true
gallery: true
highlight: tango
---
```{r setup, include=FALSE}全球备选方案
knitr::opts_chunk$set(cache = FALSE)
## Some Plots
```{r}地块(rnorm(50),runif(50))
```{r}地块(rnorm(50),runif(50))
```{r}地块(rnorm(50),runif(50))
https://stackoverflow.com/questions/73973499
复制相似问题