[R] verbatim environment in Rd-documents?

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Mon Jun 25 07:40:16 CEST 2001

>>>>> Henrik Bengtsson writes:

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

I don't think there is ... and even worse, I don't think there will be.

Rd.sty is meant for output from converting .Rd files via Rdconv.  And
the .Rd format does not have the above.  As we are trying to move away
from this format, most likely to something XML-based, it is basically in
feature freeze.

Unless, of course, you figure out how to modify the Perl code to do what
you want and send us the patches :-)


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