R markdown Bookdown/rmarkdown:“找不到数据文件模板/--number-sections.latex错误:pandoc文档转换失败,错误为97”

R markdown Bookdown/rmarkdown:“找不到数据文件模板/--number-sections.latex错误:pandoc文档转换失败,错误为97”,r-markdown,pandoc,bookdown,R Markdown,Pandoc,Bookdown,以下内容:render_bookindex.Rmd 我得到了与三部分表相关的另一个错误: 我应用了Remotes::install_github'rstudio/rmarkdown'建议的解决方案。现在我有一个错误: 找不到数据文件模板/-number-sections.latex 错误:pandoc文档转换失败,错误为97 我的index.Rmd如下所示: title: "Figures and Tables" author: "name" date: "`r Sys.Date()`" ou

以下内容:render_bookindex.Rmd 我得到了与三部分表相关的另一个错误: 我应用了Remotes::install_github'rstudio/rmarkdown'建议的解决方案。现在我有一个错误: 找不到数据文件模板/-number-sections.latex 错误:pandoc文档转换失败,错误为97

我的index.Rmd如下所示:

title: "Figures and Tables"
author: "name"
date: "`r Sys.Date()`"

output:
  bookdown::pdf_book:
    includes:
      in_header: preamble.tex
    keep_tex: yes
    citation_package: natbib
fontsize: 12pt
classoption: oneside
linestretch: 2
documentclass: book
bibliography: "bibs.bib"
biblio-style: "apalike"
geometry: "left=1.5in, right=1in, top=1in, bottom=1in"
---
序言.tex有:

\usepackage[none]{hyphenat}
\usepackage{booktabs}
\pagestyle{plain}
\raggedbottom 

虽然render_bookindex.Rmd不会生成pdf并给出此pandoc错误,但它成功生成了合并的标记文件FiguresTables.Rmd。当我尝试编织合并文件时,它会工作,它会生成pdf。我就是不明白为什么我不能从render_bookindex.Rmd生成pdf

没关系!写这个问题让我想到了答案。我只是从cran存储库而不是github重新安装了r-markdown,然后重试。现在一切正常

没关系!写这个问题让我想到了答案。我只是从cran存储库而不是github重新安装了r-markdown,然后重试。现在一切正常