On Tue, 2008-03-11 at 10:23 -0700, threshold wrote:
> cat("\hline \n");flush.console()

you need to double the backslashes, as in

cat("\\hline \n");flush.console()

as in

> cat("\\hline \n");flush.console()
\hline 

The warning when using just one kind of hints at what is going on:

> cat("\hline \n");flush.console()
hline 
Warning messages:
1: '\h' is an unrecognized escape in a character string 
2: unrecognized escape removed from "\hline \n" 

You may want to take a look the packages Hmisc and xtable, which both
have great facilities for doing latex output from all kinds of R
objects.

Regards,

markus
--
Markus Jantti
Abo Akademi University
[EMAIL PROTECTED]
http://www.iki.fi/~mjantti

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to