尝试使用 Rticles 生成示例 R markdown 时出错:未找到 pdflatex Ubuntu 20.04

Error when Trying to use Rticles to generate example R markdown: pdflatex not found Ubuntu 20.04

我试图生成 pdf 格式的示例文章输出之一,但遇到了同样的错误 pdflatex not found。这是在 Ubuntu 20.04 焦点窝。

我首先关注了 Yihue 的故障排除 site, but got the same error found here, here, and here 。在 Ubuntu 20.04 上的 R 中,我首先使用 devtools::install_github('yihui/tinytex') 安装了 tinytex。然后我尝试执行 library(tinytex)tinytex::tlmgr_update(),但返回错误 Error in system2("tlmgr", args, ...) : error in running command。我以为这是因为我在 Ubuntu 20.04 上遗漏了一些东西。似乎截至2020年7月14日,Ubuntu20.04或rticles没有附带Texlive,这是输出所必需的。因此,我在命令行 运行 sudo apt install texlive-full 并且能够 运行 示例。