我有一本bookdown
书,其中包含两个文件:index.Rmd
和01-intro.Rmd
。这些文件分别包含以下内容:
index.Rmd
---
title: "Book"
author: "User"
date: ""
site: bookdown::bookdown_site
documentclass: book
output:
bookdown::gitbook:
config:
toc:
collapse: section
fontsettings:
theme: white
family: serif
size: 2
---
# First
This is a book.
01-intro.Rmd
# Second
## Second point one
Stuff.
## Second point two
Things.
我制作我的书是为了在RStudio预览中产生以下内容:
有两点值得注意:1)折叠的目录和2)衬线字体。现在,单击Open in Browser
,然后在默认浏览器(Chrome)中得到以下信息:
注意:无衬线字体和扩展的目录。嗯我想知道这是否是特定于浏览器的,所以在Internet Explorer中打开了这本书并得到了完全相同的结果。为什么用浏览器查看时会丢弃我的YAML参数?
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0 backports_1.1.2 bookdown_0.7.17 magrittr_1.5 rprojroot_1.3-2 htmltools_0.3.6 tools_3.5.0 yaml_2.2.0 Rcpp_0.12.18
[10] stringi_1.1.7 rmarkdown_1.10 knitr_1.20 xfun_0.3 stringr_1.3.1 digest_0.6.15 evaluate_0.11
由于我的雇主管理我的版本,所以我无法更新RStudio或R。