将 pandoc 从 1.19 更新到 2.4 后,R markdown pandoc 文档转换失败,错误 1 [英] R markdown pandoc document conversion failed with error 1 after updating pandoc from 1.19 to 2.4

查看:291
本文介绍了将 pandoc 从 1.19 更新到 2.4 后,R markdown pandoc 文档转换失败,错误 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在 Windows 上安装了 pandoc 2.4,但转换失败,所有编织都出现错误 1.我不会编 html、word 和 pdf.错误说

I recently installed pandoc 2.4 on Windows and the conversion failed with error 1 occurs for all knitting. I can't knit html, word, and pdf. The error says

output file: template.knitmd
pandoc.exe: template.utf8.md: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1
Execusion halted

<小时>

即使是原始的基本模板 rmd 文件也会发生这种情况.我正在使用没有互联网连接和有限的写作许可的封闭网络.以前,我能够编织位于文档文件夹中的 rmd 文件,并在同一位置生成输出.


This happens to even the raw basic template rmd file. I am using a closed network without internet connection and limited writing permission. Previously I was able to knit rmd files located in documents folder generating outputs in same location.

sessionInfo() 说

The sessionInfo() says

R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: windows >=8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_collate=english_united states.1252 lc_ctype=english_united states.1252 lc_monetary=english_united states.1252
[4] LC_Numeric=C LC_TIME=english_united states.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] flextable_0.4.5 officer_0.3.2 knitr_1.20 rmarkdown_1.10

loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 digest_0.6.18 rprojroot_1.3-2 R6_2.3.0 backports_1.1.2 magrittr_1.5 evaluate_0.12
[8]zip_1.0.0 stringi_1.2.4 gdtools_0.1.7 uuid_0.1-2 xml2_1.2.0 tools_3.5.1 stringr_1.3.1
[15] yaml_2.2.0 compiler_3.5.1 base64enc_0.1-3 htmltools_0.3.6

<小时>

任何建议将不胜感激.(或者甚至如何在不删除版本 2.4 的情况下将设置更改回旧的 pandoc 版本.)


Any advice will be highly appreciated. (Or even ways how to change the settings back to old pandoc version without deleting the version 2.4.)

推荐答案

我也遇到过这个问题.按照说明映射存储我的 R 项目的网络驱动器 here 为我解决了这个问题.

I have had this issue as well. Mapping the network drive where my R project was stored by following the instructions here solved the issue for me.

这篇关于将 pandoc 从 1.19 更新到 2.4 后,R markdown pandoc 文档转换失败,错误 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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