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

From: Kevin E. Thorpe <>
Date: Wed, 23 Jan 2008 12:34:03 -0500

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.

> On Jan 23, 2008 12:20 PM, Frank E Harrell Jr <> wrote:

>> Gabor Grothendieck wrote:
>>> I don't use Mac but a workaround to this type of
>>> problem was discussed just recently here:
>> I don't think that addresses the problem. If xdvi is truly in the
>> system path then the problem is very strange.
>> Frank
>>> On Jan 23, 2008 9:22 AM, Kevin E. Thorpe <> wrote:
>>>> Hello.
>>>> I am posting this on behalf of a student in my class. I have been
>>>> introducing them to R.
>>>> I suspect that the problem I need help with is not so much an R
>>>> issue, but a MAC config issue, but I don't have enough MAC
>>>> experience to know what to do.
>>>> Anyway, on to the problem. We are using Frank Harrell's Hmisc
>>>> and Design packages. This student also wishes to use the latex
>>>> formatting facilities provided in those packages so she has installed
>>>> LaTeX.
>>>> When she does something like latex(describe(dataframe)), the latex
>>>> file is produced, the dvi file is successfully written but then
>>>> the error "sh: line 1: xdvi: command not found" appears.
>>>> I started a terminal and a "which xdvi" returned the path
>>>> where it found xdvi. So, it appears that xdvi is in the
>>>> PATH.
>>>> My apologies, I forgot to get her sessionInfo() but I think
>>>> she is running R 2.6.?
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Department of Public Health Sciences
Faculty of Medicine, University of Toronto
email:  Tel: 416.864.5776  Fax: 416.864.6057

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 23 Jan 2008 - 17:38:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jan 2008 - 00:30:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive