[R] Sweave special token \\ from R to latex

Jan Wijffels Jan.Wijffels at ucs.kuleuven.be
Fri Aug 4 14:40:05 CEST 2006


Dear helpeRs,

I would like to specify a newline command in R and pass it to latex  
via Sweave such that it corresponds to latex' \\ command. But that  
doesn't seem to be possible. If I Sweave the \n character, it just  
makes a new line in latex but not the \\ command.

Is there a way such that the following code would result in latex in
blablabla \\ blablabla on different line


<<echo=FALSE>>=
   string <- "blablabla \\ blablabla on different line"
@
\Sexpr{string}




Thanks for the help,
Jan

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



More information about the R-help mailing list