Can';t使用R swave编译pdf。Latex错误:文件';ae.sty&x27;找不到

Can';t使用R swave编译pdf。Latex错误:文件';ae.sty&x27;找不到,r,pdf,latex,sweave,R,Pdf,Latex,Sweave,我无法使用rswave编译pdf。我一直得到以下错误 Latex错误:找不到文件“ae.sty” 为什么我总是犯这个错误?我是否需要安装另一个具有pdf编译功能的软件包 我使用的是windows,我的tex安装是一个软件包tinytex,您可以使用vector添加您可能需要的所有软件包,然后使用for循环从R终端安装所有软件包。 You can use the vector to add all the packages that you may need and then use the fo

我无法使用rswave编译
pdf
。我一直得到以下错误

Latex错误:找不到文件“ae.sty”

为什么我总是犯这个错误?我是否需要安装另一个具有pdf编译功能的软件包


我使用的是windows,我的tex安装是一个软件包
tinytex

,您可以使用vector添加您可能需要的所有软件包,然后使用for循环从R终端安装所有软件包。
You can use the vector to add all the packages that you may need and then use the for loop to install all them from the R terminal.

packs <- c("`setspace.sty'", "`float.sty'", "`amssymb.sty'", "`utf8.sty'", "`fancyhdr.sty'", "`tabularx.sty'", "`hyperref.sty'", "`etoolbox.sty'", "`lmodern.sty") 

for (i in 1:length(packs)) {     
     tinytex::parse_install(text = paste('! LaTeX Error: File', packs[i],'not found.'))
}

packs
packs如果您添加一些系统的详细信息,它可能会帮助人们进行调试;完全的错误是什么?您使用的是什么操作系统?安装什么tex?你能在R之外渲染这个tex文件吗(省略SweaveOpts行)?谢谢我使用的是windows,我的tex安装是R上的tinytex软件包。谢谢你提供的信息。我不使用tinytex,因此我恐怕无法提供任何帮助。我注意到,
ae
软件包未列在中,而它是由texlive列出的。但考虑到有多少r用户使用tinytex,我怀疑这是一个问题。。。。。。另外还有
tinytex:::install_yihui_pkgs()
,它具有。可能值得将代码添加到您如何安装
tinytex
以及您用来执行swave文件的代码中,即可能
install.packages('tinytex');tinytex::install_tinytex()
然后
tinytex::pdflatex('test.tex')
You can use the vector to add all the packages that you may need and then use the for loop to install all them from the R terminal.

packs <- c("`setspace.sty'", "`float.sty'", "`amssymb.sty'", "`utf8.sty'", "`fancyhdr.sty'", "`tabularx.sty'", "`hyperref.sty'", "`etoolbox.sty'", "`lmodern.sty") 

for (i in 1:length(packs)) {     
     tinytex::parse_install(text = paste('! LaTeX Error: File', packs[i],'not found.'))
}