我使用R rmarkdown包将.Rmd文件渲染到html输出。据我所知,这个包使用pandoc将.md文件转换为html。在我的CentOS机器下,版本如下
CentOS Linux release 7.0.1406 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CentOS Linux release 7.0.1406 (Core)
CentOS Linux release 7.0.1406 (Core)
cpe:/o:centos:centos:7我有一个带有版本的pandoc
-bash-4.2$ pandoc --version
pandoc 1.12.4.2但是当我运行rmarkdown::render()函数时,我收到这样的错误
Error: pandoc version 1.12.3 or higher is required and was not found.
Execution halted我认为R正在使用它的本地pandoc,它看起来比我的全球pandoc更老。有人知道如何在R rmarkdown中指定全局pandoc的全局路径吗?
发布于 2015-10-09 19:43:47
正如@langusta建议的那样,我使用了这个答案,并且它起作用了:pandoc version 1.12.3 or higher is required and was not found (R shiny)
https://stackoverflow.com/questions/33036706
复制相似问题