r - r markdown to pdf 输出错误
问题描述
使用 R markdown 在 rstudio 中将 Knit 转换为 pdf 时出现错误。它可以毫无问题地编织到 html。
我得到的错误是:
Output created: PA1_template.pdf
Error in tools::file_path_as_absolute(output_file) :
file 'PA1_template.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: running command '"pdflatex" -halt-on-error -interaction=batchmode "PA1_template.tex"' had status 1
2: In readLines(logfile) :
incomplete final line found on 'PA1_template.log'
Execution halted
任何有关如何解决此问题的帮助将不胜感激。
詹姆士
解决方案
为我解决了上述问题,请参见下文:
大家好,
我终于得到了降价针织。这是解决方案的 github 链接:https ://github.com/rstudio/rmarkdown/issues/1285#issuecomment-374340175
- 确保 Miktex 控制台设置 > 常规 > 即时安装缺少的软件包
- 在 r studio install.packages('rmarkdown') devtools::install_github('yihui/tinytex') 中安装 tinytex 的开发版本
- 另外,我改变了这一点:在 R-Studio 工具 > 全局选项中,在 Sweave 选项卡下,尝试更改“Weave Rnw using:”
如果我今天什么都没做,这仍然会成为值得纪念的一天。
推荐阅读
- php - 作曲家内存限制泊坞窗
- javascript - 使用 Javascript 的 map、reduce 或 filter 计算数组中元素的出现次数
- java - 如何计算 JsonArray 中的对象?
- typescript - Typescript + Vue.js:“从不”类型上不存在属性“xxx”
- xamarin - Xamarin.UWP 应用无法启动,因为无法加载“Microsoft.Graphics.Canvas.UI.Xaml.CanvasImageSource”
- neo4j - Apoc 找不到兼容的版本
- c# - 从c#执行嵌入的python文件
- python - 使用二叉树从事件列表中记录成功/失败
- vue.js - 如何在 vue 方法部分的动态元素上附加 vue 事件
- hibernate - 如何避免日志输出 DEBUG BasicTypeRegistry:148 - 添加类型注册...?