出于某种原因,我在书本文档中交叉引用数字时遇到问题。这是一个最小的例子:
---
output:
bookdown::html_document2:
fig_caption: yes
---
Reference example: \@ref(fig:plot-cars):
```{r plot-cars, fig.cap = "A car plot"}
plot(cars)
```
当我编织这个时,R Markdown 会抛出以下警告......
Warning message:
The label(s) fig:plot-cars not found
这个问题似乎和这个问题很相似,通过更新解决了这个问题bookdown
。据我了解,session_info()
这应该不再是问题了:
Session info -----------------------------------------------------------------------------------------
setting value
version R version 3.3.1 (2016-06-21)
system i386, mingw32
ui RStudio (0.99.489)
language (EN)
collate German_Germany.1252
tz Europe/Berlin
date 2017-01-20
Packages ---------------------------------------------------------------------------------------------
package * version date source
bookdown 0.3 2016-11-28 CRAN (R 3.3.2)
devtools 1.9.1 2015-09-11 CRAN (R 3.2.2)
digest 0.6.8 2014-12-31 CRAN (R 3.2.2)
htmltools 0.3.5 2016-03-21 CRAN (R 3.2.4)
knitr 1.11 2015-08-14 CRAN (R 3.2.2)
memoise 0.2.1 2014-04-22 CRAN (R 3.2.2)
Rcpp 0.12.8 2016-11-17 CRAN (R 3.3.2)
rmarkdown 0.8.1 2015-10-10 CRAN (R 3.2.2)
yaml 2.1.13 2014-06-12 CRAN (R 3.2.2)
有任何想法吗?