嗨,我刚刚更新了我的 RStudio 版本,现在我无法创建降价文件。我将 RStudio 升级到版本:1.0.136
My version of R is 3.2.5.
Version of these packages:
knitr: 1.15.1
rmarkdown: 1.4
注意我已经安装了MikTEX,它工作正常。我被急于降价文件。
现在我只需创建一个新的 r markdown pdf 文件并单击 knit,我就会收到此错误:
pandoc version 1.12.3 or higher is required and was not found
我需要做什么才能让针织运行?
当我跑步时
> pandoc_available(version = NULL, error = FALSE)
[1] FALSE
>
> pandoc_version()
NULL
如果你在Windows机器上,这是安装pandoc的最简单方法。
install.packages("installr")
library(installr)
install.pandoc()
我在
使用服务器时遇到了这个问题。我能够跑.通过终端安装 pandoc 后的 rmd 文件。
sudo apt-get install pandoc
然后对于 html 输出调用 .Rmd 与
R -e rmarkdown::render('/path/to/file.Rmd',output_file='/path/to/output.html')