第一个文档的`_bookdown.yml`、`_output.yml`和yaml header有什么区别?

What's the difference between `_bookdown.yml`, `_output.yml` and yaml header of the first document?

在使用 bookdown 编写文档时,我知道有四个用于放置配置选项的选项:

现在我的问题是:

到目前为止我知道...希望其他人可以完成这个

先看看这个高级解释R markdown 接下来使用下面提供的超链接,这些链接都指向文档详细信息

第一个 *.Rmd 文件的 YAML header

  • 可以包含其他 pandoc 参数,如 here 所述。
  • 它必须包含以下行:站点:bookdown::bookdown_site
  • 可能包含

    指定的多种输出格式
    output: 
      bookdown::gitbook:
      bookdown::pdf_book:
      bookdown::epub_book:  
    

...但这些也可以在 _output.yml 中,如所述 here 所有格式都应位于顶层,而不是在输出字段下。

Example

_bookdown.yml

所有_bookdown.yml参数用于生成书籍并保存结果。

示例

    book_filename: "_book_example"
    repo: https://github.com/<user>/<repo>/ 
    before_chapter_script: ["script1.R"]
    after_chapter_script:  ["script2.R"]
    output_dir: "_book"
    clean: ["deleteme.Rmd"]
    rmd_files: ["index.Rmd", "02-literature.Rmd", "01-intro.Rmd"]
    delete_merged_file: true
    language:
      label: 
        fig: "FIGURE " 
        tab: "TABLE " 
      ui:
        edit: "Edit"
        chapter_name: "Chapter "
    rmd_subdir: ["content/"]