[R-SIG-Mac] problem checking packages with R 2.13.0
John Fox
jfox at mcmaster.ca
Sun Apr 17 01:20:33 CEST 2011
Dear list members,
I'm experiencing a problem checking packages with R 2.13.0 on a new Mac OS X 10.6.7 system. As far as I can tell, R isn't finding my LaTeX installation. Packages seem to build fine. Some details follow:
Here's what happens when I try to check a package:
----- snip ------
John-Foxs-MacBook-Pro:workspace jfox$ R CMD check car
* using log directory /Users/jfox/Documents/workspace/car.Rcheck
* using R version 2.13.0 (2011-04-13)
* using platform: x86_64-apple-darwin9.8.0 (64-bit)
* using session charset: UTF-8
* checking for file car/DESCRIPTION ... OK
* this is package car version 2.0-10
. . .
* checking examples ... OK
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
!pdfTeX error: pdflatex (file 8r.enc): cannot open encoding file for reading
==> Fatal error occurred, no output PDF file produced!
* checking PDF version of manual without hyperrefs or index ... ERROR
----- snip ------
I get the following error when I try to check the package under eclipse/StatET (deleting the lines before the error):
----- snip ------
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
* checking PDF version of manual without hyperrefs or index ... ERROR
Re-running with no redirection of stdout/stderr.
Hmm ... looks like a package
You may want to clean up by 'rm -rf /var/folders/ay/ayD+f6yQFomFC5SGQV6vP++++TI/-Tmp-//RtmpopONVs/Rd2pdf16f793c'
Error in texi2dvi("Rd2.tex", pdf = (out_ext == "pdf"), quiet = FALSE, :
pdflatex is not available
Error in running tools::texi2dvi
----- snip ------
But I have no problem running pdflatex from a terminal window:
----- snip ------
John-Foxs-MacBook-Pro:~ jfox$ pdflatex --help
Usage: pdftex [OPTION]... [TEXNAME[.tex]] [COMMANDS]
or: pdftex [OPTION]... \FIRST-LINE
----- snip -----------
Nor does Sys.which() seem to find pdflatex:
----- snip ------
R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
. . .
[R.app GUI 1.40 (5751) i386-apple-darwin9.8.0]
[History restored from /Users/jfox/.Rapp.history]
> Sys.which("pdflatex")
pdflatex
""
----- snip ------
Some more information about my system:
----- snip ------
> Sys.info()
sysname
"Darwin"
release
"10.7.3"
version
"Darwin Kernel Version 10.7.3: Sun Mar 6 13:37:56 PST 2011; root:xnu-1504.14.2~1/RELEASE_X86_64"
nodename
"John-Foxs-MacBook-Pro.local"
machine
"x86_64"
login
"jfox"
user
"jfox"
> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/C/C/en_CA.UTF-8/en_CA.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
----- snip ------
Any suggestions would be appreciated.
Thanks,
John
------------------------------------------------
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/
More information about the R-SIG-Mac
mailing list