我必须使用RStudio来编织PDF格式的报告,但是当我尝试使用Rmarkdown中的块中所需的软件包来编织文档时,它向我显示此错误:

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

我试图更新所有可能的内容,并且尝试从一开始就安装所有内容,但是它突然向我显示相同的错误消息

最佳答案

要将问题的评论包起来并遵循Yihui Xie's page的解决方案-另请参见here进行讨论。

简而言之...

tinytex::reinstall_tinytex()

...应该可以解决问题。

说明:{tinytex}/Texlive似乎正在使用滚动软件包存储库,该存储库每年会移至新版本,而本地分册则没有。重新安装确实会将本地安装向前移动。

替代解决方案:似乎存在替代解决方案,涉及使TexLive软件包存储库展开(即使用固定版本),这可能会有所帮助:link

关于r - 我无法在RStudio中将文档编织为PDF,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/56099681/

10-11 04:19