yihui 明白了,大概因为我这两天正在弄 leaflet吧,但是还有报错:
!LaTeX Error: File `ctexart.cls' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)
Enter file name:
! Emergency stop.
<read *>
l.2 \usepackage
pandoc: Error producing PDF
错误: pandoc document conversion failed with error 43
停止执行
> library(tinytex)
> tlmgr_search('ctexart.cls')
tlmgr search --file --global 'ctexart.cls'
sh: tlmgr: 未找到命令
Warning message:
In tlmgr(c("search", if (file) "--file", if (all) "--all", if (global) "--global", :
TeX Live does not seem to be installed. See https://yihui.name/tinytex/.
> tlmgr_install('ctex')
tlmgr install ctex
sh: tlmgr: 未找到命令
tlmgr path add
sh: tlmgr: 未找到命令
Warning messages:
1: In tlmgr(c("install", pkgs), usermode) :
TeX Live does not seem to be installed. See https://yihui.name/tinytex/.
2: In tlmgr(c("path", match.arg(action))) :
TeX Live does not seem to be installed. See https://yihui.name/tinytex/.