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?