[R] Continuation string in Sweave

Søren Højsgaard Soren.Hojsgaard at agrsci.dk
Wed Apr 2 15:57:58 CEST 2003


Dear all,
In Sweave I have a code chunk
aaa <- "Sex, Drug/Sex:W1,Drug:W1,\
    Sex:W2,Drug:W2/Sex:W1:W2,Drug:W1:W2"
which in tex code turns into
\begin{Sinput}
> aaa <- "Sex, Drug/Sex:W1,Drug:W1,\n    Sex:W2,Drug:W2/Sex:W1:W2,Drug:W1:W2"
\end{Sinput}
meaning that the string is not split to two lines. Any suggestion about how to make Sweave break the string ?
Thanks in advance
Søren Højsgaard



==========================================
Søren Højsgaard,  PhD, Senior Scientist
Biometry Research Unit
Danish Institute of Agricultural Sciences
Research Centre Foulum, DK-8830 Tjele, Denmark
Phone: +45 8999 1703
E-mail : sorenh at agrsci.dk
Homepage : http://www.jbs.agrsci.dk/~sorenh/



More information about the R-help mailing list