Re: [R] using latex() in R for Unix

2006-05-05 Thread Richard M. Heiberger
The difficulty you are running into is related to the fact that print methods return their argument as their value. They do not return a representation of the text that appears on the screen. At some level, it looks like the intent is to capture the screen text and reformat it for LaTeX. This is

Re: [R] using latex() in R for Unix

2006-05-04 Thread Paul Johnson
This thread piqued my interest in how to use Hmisc latex() to produce the tables that I actually want, rather than the ones that come out by default. Actually, I'd be glad to use R2HTML or any other tool if I can make the output suit my taste. Here's a small working example that does not

[R] using latex() in R for Unix

2006-04-05 Thread Brian Quinif
I am using R for Unix and want to make some LaTeX tables. I have already played around in R for Windows and have succeeded in making tables that I want using the following code: latex(Estimates, file='out.tex', rowlabel='',digits=3) However, when I use this code in Unix, I can never find the

Re: [R] using latex() in R for Unix

2006-04-05 Thread Peter Dalgaard
Brian Quinif [EMAIL PROTECTED] writes: I am using R for Unix and want to make some LaTeX tables. I have already played around in R for Windows and have succeeded in making tables that I want using the following code: latex(Estimates, file='out.tex', rowlabel='',digits=3) However, when I

Re: [R] using latex() in R for Unix

2006-04-05 Thread Brian Quinif
Yes, Peter, I do mean the later() function from the Hmsic package. Below is a reproducible example. Also, does anyone know how to stop R from automatically running LaTeX on the file produced by latex() library(Matching) library(Hmisc) #make up some data X - matrix(rnorm(1000*5), ncol=5) Y1 -

Re: [R] using latex() in R for Unix

2006-04-05 Thread Peter Dalgaard
Brian Quinif [EMAIL PROTECTED] writes: Yes, Peter, I do mean the later() function from the Hmsic package. Below is a reproducible example. Also, does anyone know how to stop R from automatically running LaTeX on the file produced by latex() The last bit is easy. It's the print method that

Re: [R] using latex() in R for Unix

2006-04-05 Thread Brian Quinif
I seem to have straightened out the problem I was having by typing ls -ald /home/b/bquinif/bq/9095/ before running R. Thanks again to the ever helpful people on this list. BQ before you start 05 Apr 2006 23:11:12 +0200, Peter Dalgaard [EMAIL PROTECTED]: Brian Quinif [EMAIL PROTECTED] writes:

Re: [R] using latex() in R for Unix

2006-04-05 Thread Don MacQueen
Your command latex(Estimates, file='out.tex', rowlabel='',digits=3) works for me in a unix environment, and produces the file out.tex in the current working directory. (your second example is not reproducible, in general, since I don't have directory named /home/b/bquinif/bq/9095 )

Re: [R] using latex() in R for Unix

2006-04-05 Thread Frank E Harrell Jr
Peter Dalgaard wrote: Brian Quinif [EMAIL PROTECTED] writes: Yes, Peter, I do mean the later() function from the Hmsic package. Below is a reproducible example. Also, does anyone know how to stop R from automatically running LaTeX on the file produced by latex() The last bit is easy.