rio*_*len 2 r pandoc rstudio knitr
编辑.
我现在使用Rstudio版本1.0.136和pandoc 1.19.2.1并且没有变化.
这真让我抓狂.有人真的对此有所了解吗?
-
我不能再编织HTML或PDF了,虽然它曾经工作得很好.这是我一直得到的错误:
pandoc: out of memory (requested 1048576 bytes)
Error in strsplit(version_info, "\n")[[1]] : subscript out of bounds
Calls: <Anonymous> ... pandoc_available -> find_pandoc -> lapply -> FUN -> get_pandoc_version
In addition: Warning message:
running command ''/usr/lib/rstudio/bin/pandoc/pandoc' --version' had status 1
Execution halted
Run Code Online (Sandbox Code Playgroud)
我以前有Rstudio 0.999.903,我卸载了,然后安装了1.0.44版本,通过Rstudio重新安装了knitr包,但是我又遇到了这个错误.
我使用debian软件包安装程序从git存储库安装了pandoc 1.18-1,同样的问题.
我尝试卸载R并重新安装更新的版本,但没有成功.
命令行有效:
library(rmarkdown)
rmarkdown::render("test.Rmd", "html_document")
Run Code Online (Sandbox Code Playgroud)
-
我正在使用Debian(LMDE2).
感谢帮助
终于我明白了!
似乎这个bug在2年前由Arch用户在这里描述.
似乎这个bug是在Debian系统中使用Rstudio版本0.98+为我介绍的(我使用LMDE Betsy).
与Rstudio一起安装的pandoc版本不起作用,当我手动安装pandoc时,Rstudio会坚持使用自己的破坏版本.无论如何,解决方法是从Rstudio发行版中删除可执行的pandoc,并使用符号链接另一个版本的pandoc:
apt-get install pandoc
rm /usr/lib/rstudio/bin/pandoc/pandoc
ln -s /usr/bin/pandoc /usr/lib/rstudio/bin/pandoc/pandoc
rm /usr/lib/rstudio/bin/pandoc/pandoc-citeproc
ln -s /usr/bin/pandoc-citeproc /usr/lib/rstudio/bin/pandoc/pandoc-citeproc
Run Code Online (Sandbox Code Playgroud)
我在这里找到了这个解决方法.
存储库具有pandoc版本1.12,但更新版本也可以使用.我现在使用pandoc 1.19.2.1和Rstudio 1.0.136.
归档时间: |
|
查看次数: |
2893 次 |
最近记录: |