在new_session选项设置为yes的情况下预览书本章节

时间:2019-08-20 14:57:08

标签: r bookdown

我正在尝试使用编织和合并方法来使用bookdown包创建一本书。我在new_session: yes文件中添加了_bookdown.yml行,现在当我尝试预览章节bookdown::preview_chapter("data-preparation.Rmd")时,出现以下错误:

Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
  cannot open file 'introduction.md': No such file or directory

这是我的_bookdown.yml文件的样子:

delete_merged_file: true

rmd_files: [
  "index.Rmd",
  "introduction.Rmd",
  "preliminaries.Rmd",
  "data-preprocessing.Rmd",
  "data-preparation.Rmd",
  "data-insights.Rmd",
  "statistical-modeling.Rmd"
]

# Use knit and merge rendering approach
new_session: yes

language:
  label:
    fig: "FIGURE "
    tab: "TABLE "
  ui:
    chapter_name: "Chapter "

有人可以指导我解决此问题吗?

0 个答案:

没有答案