[R] Not showing dvi with Hmisc latex()

Duncan Murdoch murdoch at stats.uwo.ca
Fri Apr 27 03:32:22 CEST 2007

On 4/26/2007 9:20 PM, Gad Abraham wrote:
> Hi,
> I'm using latex() from Frank Harrell's Hmisc library to produce LaTeX 
> files. By default, it calls xdvi and displays the dvi.
> How can I make xdvi not show? I couldn't find a clue in the extensive 
> documentation.

Unclass the result so it doesn't print as a latex object.  For example,

 > unclass(latex("1", file="test.tex"))
[1] "test.tex"


Alternatively, if you just assign the result you can print it later. 
It's when you print that the latex'ing happens.

Duncan Murdoch

More information about the R-help mailing list