我正在使用bookdownplus
R
带有dnd
模板的包。我使用了以下代码。
library('bookdownplus')
bookdownplus('dnd', render = TRUE, rproj = TRUE)
当我编译文档时,它会抛出错误:
! Undefined control sequence.
l.61 \hypertarget
{chapter-1-bookdownplus}
解决问题的任何提示。谢谢
会话信息
sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bookdownplus_1.5.6
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 bookdown_0.9.2 packrat_0.5.0 digest_0.6.18
[5] magrittr_1.5 evaluate_0.13 stringi_1.4.3 rstudioapi_0.10
[9] rmarkdown_1.12 tools_3.5.3 stringr_1.4.0 tinytex_0.11
[13] xfun_0.6 yaml_2.2.0 compiler_3.5.3 htmltools_0.3.6
[17] knitr_1.22.8
已编辑
使用@Maurits Evers 的建议,我使用on更新了 TinyTex。我仍然收到错误:`!未定义的控制序列。l.61 \hypertarget {chapter-1-bookdownplus}{%wget -qO- "https://yihui.name/gh/tinytex/tools/install-unx.sh" | sh
Ubuntu 18.04 LTS
错误:无法编译 dnd.tex。有关调试提示,请参阅https: //yihui.name/tinytex/r/#debugging。` 任何想法。
错误报告
错误报告tinytex和bookdownplus。