r-预订预览_章节

  • 本文关键字:章节 r bookdown
  • 更新时间 :
  • 英文 :


我似乎无法让preview_chapter参与我的r bookdown项目。这是我的_bookdown.yml文件:

book_filename: "thesis"
delete_merged_file: true
output_dir: "docs"
new_session: yes 
rmd_files: # defines the .Rmd files to be included for each output format
html: ["index.Rmd", "02-methodology.Rmd", "03-results.Rmd", "99_references.Rmd"]

当我使用:

bookdown::render_book("index.Rmd", bookdown::'gitbook')

整本书编纂正确。但如果我试着构建一个单独的章节如下:

bookdown::preview_chapter("03-results.Rmd", bookdown::'gitbook')

我得到:

Error in files2[[format]] : 
attempt to select less than one element in get1index

我是否使用了错误的语法?

bookdown::'gitbook'应为'bookdown::gitbook'

最新更新