【发布时间】:2021-03-27 05:41:23
【问题描述】:
我有一个使用 Rmarkdown 制作的网站,在处理过程中使用数据/子目录中的大型数据文件,但在显示 html 时没有必要。
构建器当前正在将这些文件复制到站点/文件夹中的等效目录。
如何指定在站点生成过程中不复制此数据/文件夹?
【问题讨论】:
标签: r web r-markdown blogdown
我有一个使用 Rmarkdown 制作的网站,在处理过程中使用数据/子目录中的大型数据文件,但在显示 html 时没有必要。
构建器当前正在将这些文件复制到站点/文件夹中的等效目录。
如何指定在站点生成过程中不复制此数据/文件夹?
【问题讨论】:
标签: r web r-markdown blogdown
因此,解决方案是在许多人的著名建议中,阅读手册,但事实是有许多手册和版本,我现在找到了我需要的愿景。
Site Configuration The _site.yml file has a number of options that affect site output including where it is written and what files are包含和排除在网站之外。这是一个使用的例子 其中一些选项:
name: "my-website"
output_dir: "_site"
include: ["import.R"]
exclude: ["docs.txt", "*.csv"]
https://bookdown.org/yihui/rmarkdown/rmarkdown-site.html#site-configuration
【讨论】: