[R] verbatim environment in Rd-documents?

Henrik Bengtsson henrikb at braju.com
Sun Jun 24 21:01:13 CEST 2001


Is there a verbatim environment in the Rd-format or is there an easy way to
get the same result? Example what I would like to have:

\verbatim{
  > str
  function (object, ...)
  UseMethod("str")
}

It would be something similar to \example, but I can not use \example since
it generates a new section and can not be inside other sections. Also, it
might not be R-code in verbatim environment. The verbatim environment
should, as example, respond to newline (or at least it should be possible to
force a newline). I believe \code should not be used for this purpose and it
also does not respond to newlines or initial spaces (for indentation). It is
too akward to have a \code statement for every line.

Thanks

Henrik Bengtsson
h e n r i k b @ b r a j u . c o m

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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