[R] Code in Rd help files other than in \examples{}
Frank E Harrell Jr
fharrell at virginia.edu
Mon Feb 11 21:39:23 CET 2002
I am stumped in determining the proper syntax for including displayed S code within an R .Rd documentation file, in places other than \examples{}. I have tried
\code{
line 1
line 2
}
but the lines get run together. When I terminate the lines by \cr, the "\cr" actually appears in the resulting html file. This is all inside a customized \section{}.
On a related note, what is there a way to include large blocks of text within \examples{} that is not part of S comments? I want such text to appear in the html help file, optimally with auto-wrapping of lines. \dontrun{} does not appear to be exactly what I need. I actually need multiple sub-\examples{} with intervening text but no new headings.
I am using R 1.4.0 on RedHat Linux 7.1. Thanks in advance for pointers.
Frank
--
Frank E Harrell Jr Prof. of Biostatistics & Statistics
Div. of Biostatistics & Epidem. Dept. of Health Evaluation Sciences
U. Virginia School of Medicine http://hesweb1.med.virginia.edu/biostat
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list