首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在R rmarkdown中指定pandoc的全局路径

问如何在R rmarkdown中指定pandoc的全局路径
EN

Stack Overflow用户
提问于 2015-10-09 19:06:40
回答 1查看 5.7K关注 0票数 3

我使用R rmarkdown包将.Rmd文件渲染到html输出。据我所知,这个包使用pandoc将.md文件转换为html。在我的CentOS机器下,版本如下

代码语言:javascript
复制
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

代码语言:javascript
复制
-bash-4.2$ pandoc --version
pandoc 1.12.4.2

但是当我运行rmarkdown::render()函数时,我收到这样的错误

代码语言:javascript
复制
Error: pandoc version 1.12.3 or higher is required and was not found.
Execution halted

我认为R正在使用它的本地pandoc,它看起来比我的全球pandoc更老。有人知道如何在R rmarkdown中指定全局pandoc的全局路径吗?

EN

回答 1

Stack Overflow用户

发布于 2015-10-09 19:43:47

正如@langusta建议的那样,我使用了这个答案,并且它起作用了:pandoc version 1.12.3 or higher is required and was not found (R shiny)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33036706

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档