Re: [R] R-Latex question

From: Markus Jäntti <>
Date: Tue, 11 Mar 2008 14:10:31 -0400

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()

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

> cat("\hline \n");flush.console()
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.



Markus Jantti
Abo Akademi University

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 11 Mar 2008 - 18:21:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Mar 2008 - 18:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive