我有一个.Rmd文件,希望能够使用knitr
和pandoc
获取幻灯片。跑完后:
library(knitr)
opts_chunk$set(message = FALSE)
knit("my_file.Rmd")
pandoc("my_file.md", format="dzslides")
我收到以下错误消息:
Error in system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE) :
cannot popen '/usr/bin/which 'pandoc' 2>/dev/null', probable reason 'Cannot allocate memory'
有什么问题?谢谢!