我无法在RStudio中将文档编织为PDF [英] I can't knit my documents into PDF in RStudio
问题描述
我必须使用RStudio来编织PDF格式的报告,但是当我尝试使用Rmarkdown中的块中所需的软件包来编织文档时,它会向我显示此错误:
I have to use RStudio to knit a report in PDF but when I try to knit the document with the packages required in a chunk in Rmarkdown it shows me this error:
tlmgr search --file --global '/multirow.sty'
tlmgr: Remote repository is newer than local (2018 < 2019)
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
Please see https://tug.org/texlive/upgrade.html for details.
! LaTeX Error: File `multirow.sty' not found.
! Emergency stop.
<read *>
Errore: Failed to compile questionario_sulla_responsabilita_222222.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See questionario_sulla_responsabilita_222222.log for more info.
Inoltre: Warning message:
In system2("tlmgr", args, ...) :
running command ''tlmgr' search --file --global '/multirow.sty'' had status 1
Execution interrupted
我该如何解决?我正在使用MacBook Pro
how can I fix this? I am using a MacBook Pro
我试图更新所有可能的东西,并且尝试从一开始就安装所有东西,但是它突然向我显示相同的错误消息
I tried to updated everything I can and I've tried to install everything from the beginning but it jeeps showing me the same error message
推荐答案
将注释包装到问题中,并遵循解决方案,网址为此处讨论.
To wrap the comments to the question up and following the solution at Yihui Xie's page - see also here for a discussion.
简而言之...
tinytex::reinstall_tinytex()
...应该可以解决问题.
说明:似乎{tinytex}/Texlive使用的是滚动软件包存储库,该存储库每年会移至新版本,而本地分册则没有.重新安装确实会将本地安装向前移动.
Explanation: It seems that {tinytex}/Texlive is using a rolling package repository that moves to a new version each year while the local installment does not. The reinstallation does move the local installment forward.
一种替代解决方案:似乎存在一种替代解决方案,涉及使TexLive软件包回购展开(即使用固定版本),这可能会有所帮助:
An alternative solution: There seems to be an alternative solution that involves making the TexLive package repo un-rolling - i.e. using a fixed version - which might help: link
这篇关于我无法在RStudio中将文档编织为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!