[R] question about latex command in Hmisc

Frank E Harrell Jr f.harrell at vanderbilt.edu
Mon Jun 21 15:53:48 CEST 2004

Laura Holt wrote:
> Hi R People:
> I got the following error from using the "latex" command from Hmisc;
>> latex(bbm)
> 'latex' is not recognized as an internal or external command,
> operable program or batch file.
> Warning message:
> cmd execution failed with error code 1 in: shell(cmd, wait = TRUE, 
> intern = output)
> I was printing a matrix to a Latex File.  This worked fine in Version 1.8.
> This is from Version 1.9.0 for Windows.
> Any suggestions would be much appreciated.
> Thanks in advance!
> Sincerely,
> Laura
> mailto: lauraholt_983 at hotmail.com

The latex and latex viewer executables must be in your path if you are 
using the print method for a latex object (which you are, implicitly). 
If you don't want to invoke any executables, do

  w <- latex(object, file='foo')

Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

More information about the R-help mailing list