【问题标题】:I can't knit my documents into PDF in RStudio我无法在 RStudio 中将我的文档编入 PDF
【发布时间】:2019-05-12 13:23:45
【问题描述】:

我必须使用 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

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

【问题讨论】:

  • 从 R 运行 tinytex::reinstall_tinytex() 有帮助吗?
  • @YihuiXie:那是一个死链接(该问题已被删除)。好消息,也希望@mariam-el-fath:@duckmayr 的建议确实为我解决了这个完全相同的问题。不过,必须先更新tinytex 才能正常工作; tinytex 本身已过时并因此无法更新/安装 tinytex 时提供的错误并不完全有帮助:-)
  • @Matherion 在stackoverflow.com/q/56032457/559676 被删除之前(我在 Stack Overflow 上仍有足够的声誉可以看到问题),这是我的回复:“请在 @987654323 搜索错误消息 Remote repository newer than local @ 并按照单行指令进行操作。”

标签: r rstudio knitr


【解决方案1】:

将 cmets 总结为问题并关注Yihui Xie's page 的解决方案 - 另请参阅here 进行讨论。

总之...

tinytex::reinstall_tinytex()

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

解释:似乎 {tinytex}/Texlive 正在使用滚动包存储库,该存储库每年都会移动到一个新版本,而本地安装则没有。重新安装确实将本地分期付款向前移动。

另一种解决方案:似乎有一种替代解决方案涉及使 TexLive 包 repo 展开 - 即使用固定版本 - 这可能会有所帮助:link

【讨论】:

    猜你喜欢
    • 2021-04-27
    • 1970-01-01
    • 2017-04-14
    • 1970-01-01
    • 1970-01-01
    • 2019-12-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多