无法在 rstudio 中启动 pandoc [英] Cannot launch pandoc in rstudio

查看:161
本文介绍了无法在 rstudio 中启动 pandoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不能再使用 knitr,无论是 html 还是 pdf,每次我给 knit 订单时,我都会得到这个结果

I cannot use knitr anymore, either for html or pdf, each time i give the order knit I obtain this result

Error in system(paste(shQuote(pandoc_path), "--version"), intern = TRUE) : 
  'CreateProcess' failed to run 'D:\Datos de Usuarios\Usuario\AppData\Local\Pandoc\pandoc.exe --version'
Calls: <Anonymous> ... get_pandoc_version -> with_pandoc_safe_environment -> force -> system
Ejecución interrumpida

我有这个系统:

  • rstudio 0.99.441
  • R 3.2.0
  • Windows 8.1 64 位
  • 安装了 pandoc 并显示它在输出中指向的位置,尽管 rstudio 似乎无法启动
  • 库包文件夹指向特定地址

可能的原因:我下载了一个 r.project 来编译一本书,并尝试 knitr 部分成功.然后问题就开始了.

Possible reasons: i downloaded an r.project for a book to be compiled and tried to knitr with partial succes. Then the problem started.

  • 我卸载了 rstudio 并重新启动,但没有结果.
  • 同时安装了 Windows 更新
  • 当涉及到 github 和编译时,包更新不成功.

以前一切正常.有什么建议吗?

Previously everything worked. Any suggestion?

非常感谢

推荐答案

我终于解决了:问题比预期的要简单.

Hi i finally solved it: the question was simpler than expected.

我有两个 pandoc 安装,第一个是位于 rstudio/bin 的内部 rstudio,第二个是以某种方式安装的,位于 Userdata/Apps/local/pandoc/.

I had two pandoc installations, the first one was the internal rstudio located in rstudio/bin, the second was installed somehow and located at Userdata/Apps/local/pandoc/.

然后 knitr 正在新路径中搜索 pandoc 但由于与 R 中的/\(斜杠)字符相关的混淆问题(Windows 8?)未能构建路径变量

Then knitr was searching for pandoc in the new path but failed to built the path variables due to this confusing issue related with /\ (slash) characters in R (with windows 8?)

解决办法:卸载外部pandoc,重新安装rstudio.alehop¡¡一切正常,尽管有关 knitr 无法正确生成路径的问题在 Windows 8 的窗口中仍然存在.

The solution: uninstal external pandoc, reinstall rstudio and. alehop¡¡¡ everything operative, although the issue about knitr not producing the path properly persists in windows in windows 8.

似乎只是向他人解释问题有助于您思考.

It seems that just explaining the problem to others help you think.

干杯

这篇关于无法在 rstudio 中启动 pandoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆