Knitr to PDF不会创建文件并给出错误

时间:2018-03-11 03:33:52

标签: rstudio knitr

我已经从https://miktex.org/download安装了MikText并尝试编织为PDF,它向我显示它已经创建了pdf,但实际上并没有给出下面提到的错误

output file: abc.knit.md


Output created: abc.pdf
Error in tools::file_path_as_absolute(output_file) : 
  file 'abc.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: In as.data.frame.vector(x, ..., nm = nm) :
  'row.names' is not a character vector of length 1 -- omitting it. Will be an error!
2: Column `word` joining character vector and factor, coercing into character vector 
3: In mutate_impl(.data, dots) :
  Unequal factor levels: coercing to character
4: In mutate_impl(.data, dots) :
  binding character and factor vector, coercing into character vector
5: In mutate_impl(.data, dots) :
  binding character and factor vector, coercing into character vector
6: running command '"pdflatex" -halt-on-error -interaction=batchmode "abc.tex"' had status 1 
7: In readLines(logfile) :
  incomplete final line found on 'abc.log'
Execution halted

我不确定是什么问题,这里有关于我的系统的详细信息

system2('xelatex', '--version')
MiKTeX-XeTeX 2.9.6609 (0.99999) (MiKTeX 2.9.6600 64-bit)
(C) 1994-2008 by SIL International, (C) 2009-2012 by Jonathan Kew, (C) 2010-2012 by Han The Thanh, (C) 2012-2013 by Khaled Hosny
TeX is a trademark of the American Mathematical Society.
using bzip2 version 1.0.6, 6-Sept-2010
compiled with curl version 7.56.1; using libcurl/7.56.1 WinSSL
compiled with expat version 2.2; using expat_2.2.0
compiled with fontconfig version 2.12.6; using 2.12.6
compiled with freetype2 version 2.8.1; using 2.8.1
compiled with graphite2 version 1.3.10; using 1.3.10
compiled with harfbuzz version 1.6.3; using 1.6.3
compiled with icu version 60.1; using 60.1
compiled with jpeg version 9.2
compiled with liblzma version 50020032; using 50020032
compiled with libpng version 1.6.34; using 1.6.34
compiled with libressl version LibreSSL 2.5.3; using LibreSSL 2.5.3
compiled with MiKTeX Application Framework version 2.6592; using 2.6592
compiled with MiKTeX Core version 5.6594; using 5.6612
compiled with MiKTeX Archive Extractor version 1.6300; using 1.6300
compiled with MiKTeX Package Manager version 1.6584; using 1.6584
compiled with poppler version 0.60.1
using teckit version 2.4
compiled with uriparser version 0.8.4
compiled with zlib version 1.2.11; using 1.2.11

似乎是环境问题,但我无法找到,请帮助

0 个答案:

没有答案