0
通过使用sudo R,我无法在我的shinyApp中找到pandoc,并且我收到了此消息。未找到Pandoc版本1.12.3
Warning: Error in : pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
当我这样做:
rmarkdown::pandoc_available()
我得到
FALSE
当我这样做:
pandoc -v
我得到
pandoc 1.17.2
...
Default user data directory: /home/scenerydev/.pandoc
Copyright (C) 2006-2016 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness for a particular purpose.
但是当我做
Sys.getenv("RSTUDIO_PANDOC")
我得到
""
我没有安装Rstudio。我是否需要安装它才能找到pandoc?我运行Centos 7 x64位服务器,并希望能绕过第一个安装,因为它不提供任何服务。如果不是,我该如何定义pandoc的env?