R MarkDown 错误:需要 pandoc 版本 1.12.3 或更高版本,但未找到

发布于 2025-01-12 19:30:29 字数 927 浏览 3 评论 0原文

我正在使用 R Studios Cloud,但突然在以任何格式(html、pdf 和 word)编写 Markdown 时遇到困难。

这是我按下 knit 按钮时抛出的错误:

    pandoc version 1.12.3 or higher is required and was not found (see the help page ? 
    rmarkdown::pandoc_available).
    Execution halted

然后我检查是否通过 pandoc_available() 安装了 pandoc:

> pandoc_available()
[1] FALSE

False,所以我尝试再次安装 pandoc? (我不记得卸载过它)

> installr::install.pandoc()
sh: 1: ifconfig: not found
Error in system("ifconfig", intern = TRUE) : error in running command

但是,我再次收到 ifconfig: not found 的另一个错误。

我对学习 R 和整个编程很陌生。我很困惑。我检查了最近的线程,包括流行的解决方案(下面链接),但无济于事。

我还尝试打开一个新的降价文件,但仍然无法让 knit 工作。

如果对此有任何帮助,我将不胜感激。

解决 pandoc 版本 1.12.3 错误的流行解决方案

I'm using R Studios Cloud but I am suddenly experiencing difficulty knitting my markdown in any format (html, pdf & word).

This is the error I'm thrown when I press the knit button:

    pandoc version 1.12.3 or higher is required and was not found (see the help page ? 
    rmarkdown::pandoc_available).
    Execution halted

I then check if pandoc is installed via pandoc_available():

> pandoc_available()
[1] FALSE

False, so I try to install pandoc again? (I do not recall uninstalling it)

> installr::install.pandoc()
sh: 1: ifconfig: not found
Error in system("ifconfig", intern = TRUE) : error in running command

However, again I get another error for ifconfig: not found.

I am new to learning R and programming as a whole. I'm quite stumped. I have checked recent threads including popular solutions (linked below) to no avail.

I have also tried opening a new markdown file but still could not get knit to work.

I'd appreciate any help on this one.

popular solution to resolve pandoc version 1.12.3 error

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟织青萝梦 2025-01-19 19:30:29

找到了解决方案。

单击右上角的 3 个点重新启动您的项目。

请参阅此处的帖子。

这似乎是过去 24 小时内许多 R Studio Cloud 用户发生的常见错误。

Found the solution.

Relaunch your project by clicking on the 3 dots in the upper right corner.

See thread here.

Seems to be a common error happening to a lot of r studio cloud users in the past 24 hours.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文