[R] ctable error with Hmisc and Sweave (on a Mac)

Erik Iverson eriki at ccbr.umn.edu
Tue Mar 23 02:17:50 CET 2010

Clay Heaton wrote:
> Hi, pretty new with R and LaTeX here...
> I'm trying to use the latex() function from the Hmisc table with Sweave. When I try:
> pdflatex myfile.tex
> I get an error that reads:
> ! Undefined control sequence.
> l.22 \ctable

What does your function call to latex look like?  I didn't look this up, but I 
seem to recall there being a ctable argument, which will use ctable instead of 
the standard tabular environment.  I've never used it before, but if there's no 
need to use it, don't.

More information about the R-help mailing list