【问题标题】:How do I specify that a subdirectory is not copied during the site generation process?如何指定在站点生成过程中不复制子目录?
【发布时间】:2021-03-27 05:41:23
【问题描述】:

我有一个使用 Rmarkdown 制作的网站,在处理过程中使用数据/子目录中的大型数据文件,但在显示 html 时没有必要。

构建器当前正在将这些文件复制到站点/文件夹中的等效目录。

如何指定在站点生成过程中不复制此数据/文件夹?

【问题讨论】:

    标签: r web r-markdown blogdown


    【解决方案1】:

    因此,解决方案是在许多人的著名建议中,阅读手册,但事实是有许多手册和版本,我现在找到了我需要的愿景。

    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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-08
      • 2010-10-17
      • 1970-01-01
      • 2012-06-09
      • 2016-08-16
      • 2013-02-20
      • 2013-05-08
      相关资源
      最近更新 更多