[R] Sweave - print \n ?

From: Werner Wernersen <pensterfuzzer_at_yahoo.de>
Date: Fri, 28 Mar 2008 15:43:00 +0100 (CET)


this is probably quite stupid but I have no clue what's wrong. Let's say I write the function hline <- function() {
  cat("\\hline \n")
and call hline() from within a Sweave chunk. Why is there no carriage return after the \hline in the resulting tex file?

if I call hline() hline() in the chunk, then I get \hline \hline
in the tex code without a linebreak in between.

Thanks for any hints,

      E-Mails jetzt auf Ihrem Handy.

R-help_at_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. Received on Fri 28 Mar 2008 - 14:49:41 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 Fri 28 Mar 2008 - 22:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive