【问题标题】:Bookdown rendering only blank pagesBookdown 只渲染空白页
【发布时间】:2020-04-21 13:14:22
【问题描述】:

我是 Bookdown 的新手。我正在设置一本测试书。当我去渲染这本书时,第一页(index.Rmd)正确渲染并在左侧构建了正确的目录。但是,单击目录中的任何链接只会显示一个空白页面。在 _book 文件夹中,所有内部页面都是 0 字节的 HTML 文件。

我找到了其他几个had this problem on the RStudio forums,但没有发布解决方案。

以防万一,这是我的 index.html YAML:

--- 
title: "Test Title"
author: "My Name"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
output: bookdown::gitbook
documentclass: book
bibliography: [book.bib]
biblio-style: apalike
link-citations: yes
github-repo: acircleda/RESMHandbook
description: "descirption"
---

注意:我克隆了 bookdown minimal example 并遇到了同样的问题

【问题讨论】:

  • 您有任何错误吗? knitr 的输出是什么?
  • 不要使用 RStudio 中的编织按钮,使用 bookdown::render("index.Rmd")
  • @J_F,使用bookdown::render_book("index.Rmd") 工作!我很惊讶这本书没有自动打开。为什么 knit to gitbook 按钮不起作用?

标签: r bookdown


【解决方案1】:

您必须使用bookdown::render_book("index.Rmd") 而不是使用编织按钮。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-21
    • 2021-09-05
    • 2022-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-08
    相关资源
    最近更新 更多