无法让 bookdown rmd_subdir ["dir"] 工作

2023-12-19

我尝试通过设置子目录列表来使用 _bookdown.yml 中的新 rmd_subdir 选项。我将新创建的 bookdown 项目的除 index.Rmd 之外的所有文件复制到名为的文件夹中content。 _bookdown.yml 中的以下设置确实有效

rmd_subdir: = yes

但是,当我将 _bookdown.yml 更改为以下内容时,仅编译 index.Rmd。

_bookdown.yml

book_filename: "_tmp_rmd_subdir"
delete_merged_file: true
language:
  ui:
    chapter_name: "Chapter "
rmd_subdir: ["content"]

R版本3.4.3 (2017-11-30) 平台:x86_64-w64-mingw32/x64(64位) 运行环境: Windows >= 8 x64 (build 9200)

矩阵产品:默认

区域设置: [1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

附加基础包: [1] 统计图形 grDevices utils 数据集 方法 基础

通过命名空间加载(并且未附加): [1] Rcpp_0.12.15 bookdown_0.7摘要_0.6.14 rprojroot_1.3-2 backports_1.1.2 [6] magrittr_1.5 evaluate_0.10.1 stringi_1.1.6 rstudioapi_0.7 rmarkdown_1.9
[11]tools_3.4.3 stringr_1.3.0 tinytex_0.4 xfun_0.1 yaml_2.1.19
[16] rsconnect_0.8.5 编译器_3.4.3 htmltools_0.3.6 knit_1.20


This 应该修复 https://github.com/rstudio/bookdown/pull/601在开发版本中bookdown。请尝试

devtools::install_github('rstudio/bookdown')
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法让 bookdown rmd_subdir ["dir"] 工作 的相关文章

随机推荐