生成R包手册时出错

时间:2014-10-19 17:21:55

标签: r pdflatex latex-environment

尝试使用命令行检查包时出现以下问题。 首先,我得到这个非常一般的错误消息:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
* checking PDF version of manual without hyperrefs or index … ERROR

然后,当我检查Rdlatex日志时,我发现以下抱怨:

Transcript written on Rd2.log.
Error in texi2dvi(file = file, pdf = TRUE, clean = clean, quiet = quiet,  : 
  unable to run 'pdflatex' on 'Rd2.tex'
Error in running tools::texi2pdf()
You may want to clean up by 'rm -rf /var/folders/_q/_kj9kz0n0qq_gwkrv9qjvpxw0000gn/T//Rtmp7uzkmZ/Rd2pdf2a847787e63'

出于某种原因,虽然已经正确安装了pdflatex,但它并没有设法运行pdflatex,如下所示。有没有人知道如何解决它?

  

系统(" pdflatex --version")   pdfTeX 3.14159265-2.6-1.40.15(TeX Live 2014)   kpathsea版本6.2.0   版权所有2014 Peter Breitenlohner(eTeX)/ Han The Thanh(pdfTeX)。   没有保修。该软件的重新分发是   涵盖pdfTeX版权和   较小的GNU通用公共许可证。   有关这些问题的更多信息,请参阅该文件   命名为COPYING和pdfTeX源。   pdfTeX的主要作者:Peter Breitenlohner(eTeX)/ Han The Thanh(pdfTeX)。   用libpng 1.6.10编译;使用libpng 1.6.10   用zlib 1.2.8编译;使用zlib 1.2.8   使用xpdf 3.03版编译

非常奇怪,运行R CMD Rd2pdf man /产生输出。

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )
(see the transcript file for additional information){/usr/local/texlive/2014bas
ic/texmf-dist/fonts/enc/dvips/inconsolata/i4-ts1.enc}{/usr/local/texlive/2014ba
sic/texmf-dist/fonts/enc/dvips/base/8r.enc}{/usr/local/texlive/2014basic/texmf-
dist/fonts/enc/dvips/inconsolata/i4-t1-0.enc}</usr/local/texlive/2014basic/texm
f-dist/fonts/type1/public/inconsolata/Inconsolata-zi4r.pfb></usr/local/texlive/
2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb></usr/local/texl
ive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/local/
texlive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb></usr/loc
al/texlive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/
local/texlive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr5.pfb></us
r/local/texlive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></
usr/local/texlive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pf
b></usr/local/texlive/2014basic/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy7
.pfb></usr/local/texlive/2014basic/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.p
fb></usr/local/texlive/2014basic/texmf-dist/fonts/type1/urw/times/utmb8a.pfb></
usr/local/texlive/2014basic/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/l
ocal/texlive/2014basic/texmf-dist/fonts/type1/urw/times/utmr8a.pfb></usr/local/
texlive/2014basic/texmf-dist/fonts/type1/urw/times/utmri8a.pfb>
Output written on Rd2.pdf (62 pages, 264746 bytes).
Transcript written on Rd2.log.
Saving output to 'Rd2.pdf' ...
Done

0 个答案:

没有答案