[R] latex{Hmisc} cannot find xdvi on MAC OS X

Kevin E. Thorpe kevin.thorpe at utoronto.ca
Thu Jan 24 00:26:07 CET 2008

Kevin E. Thorpe wrote:
> Gabor Grothendieck wrote:
>> It eliminates Hmisc and R by giving you a tex file.  Now its up
>> to you to figure out how to handle tex files on your system.
> I have suggested the student try options(xdvicmd="fullpathtoxdvi")
> to see what happens.

Here is the result of trying the above.

> latex(describe(ps1d))
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak,
german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi,
 french, greek, monogreek, ancientgreek, croatian, hungarian,
interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk,
polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian,
turkish, ukenglish, ukrainian, loaded.
Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
Package: `setspace' 6.7 <2000/12/01>
) (/usr/local/texlive/2007/texmf-dist/tex/latex/ltxmisc/relsize.sty)
No file file10d63af1.aux.
[1] [2] (./file10d63af1.aux) )
Output written on file10d63af1.dvi (2 pages, 10000 bytes).
Transcript written on file10d63af1.log.
/usr/texbin/xdvi: line 1: kpsewhich: command not found
/usr/texbin/xdvi: line 46: exec: xdvi-xaw.bin: not found

So, it appears to that something about the MAC environment is
not being passed to the shell that is invoked when latex() is
called in this way.


Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Department of Public Health Sciences
Faculty of Medicine, University of Toronto
email: kevin.thorpe at utoronto.ca  Tel: 416.864.5776  Fax: 416.864.6057

More information about the R-help mailing list