在 Rstudio 中使用 bookdown::html_document2 添加 table 的内容
Adding table of content with bookdown::html_document2 in Rstudio
我正在使用 Rstudio 构建 bookdown::html_document2
,但似乎无法使用 Rstudio 添加 table 内容。
我发现这个问题 () 是相关的,但是当他们使用命令行时,我使用 Rstudio 的 Knit
按钮编织我的文档。就我而言,它会产生错误:
Error in yaml::yaml.load(string, ...) :
Scanner error: mapping values are not allowed in this context at line 4, column 33
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load_utf8 -> <Anonymous>
Execution halted
要重现错误,请尝试:
---
title: "main title"
author: "Me"
date: "September 26, 2018"
output: bookdown::html_document2:
toc=TRUE
---
# title 1
# tt
# rr
## rrr
在 Rstudio 中点击 Knit
知道如何让它发挥作用吗?
谢谢
你需要花更多的时间在学习上the YAML syntax。
---
title: "main title"
author: "Me"
date: "September 26, 2018"
output:
bookdown::html_document2:
toc: true
---
# title 1
# tt
# rr
## rrr
我正在使用 Rstudio 构建 bookdown::html_document2
,但似乎无法使用 Rstudio 添加 table 内容。
我发现这个问题 (Knit
按钮编织我的文档。就我而言,它会产生错误:
Error in yaml::yaml.load(string, ...) :
Scanner error: mapping values are not allowed in this context at line 4, column 33
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load_utf8 -> <Anonymous>
Execution halted
要重现错误,请尝试:
---
title: "main title"
author: "Me"
date: "September 26, 2018"
output: bookdown::html_document2:
toc=TRUE
---
# title 1
# tt
# rr
## rrr
在 Rstudio 中点击 Knit
知道如何让它发挥作用吗? 谢谢
你需要花更多的时间在学习上the YAML syntax。
---
title: "main title"
author: "Me"
date: "September 26, 2018"
output:
bookdown::html_document2:
toc: true
---
# title 1
# tt
# rr
## rrr