[R] indentation in Rd-help files

Sergei Zuyev sergei at stams.strath.ac.uk
Wed Jan 19 19:36:05 CET 2000


Dear colleagues,
Happy New Millennium, first of all!
It would be very nice to be able to use indentation inside \code{ } as
well, not only in \examples{ } when writing Rd-help files. Such a
situation arrises, for instance, if one wishes to include a small piece
of code in the _main_ text but not in the end as \examples{ } command
does. The only way I know to put the next 3 lines

my.function <- function()
   {
     other.function()
   }

inside the text is the following:

\code{my.function <- function()  } \cr
 \code{ \{    }  \cr
 \code{    other.function() }  \cr
\code{  \}   }

I have tried all possible combinations of \t, \sp, \tab without success
- identation is lost. Probably, there is another way of doing this, say,
a command similar to \examples but without title printing text where it
is and how it is (\verbatim{} ???)

(please, answer to my email rather than to the newsgroup)

Thank you in advance
=================================================================
                           Dr. Sergei ZUYEV
Statistics and Modelling Science dept., University of Strathclyde
    Livingston Tower, 26 Richmond str., Glasgow, G1 1XH, U.K.
     Tel.: +44 (0)141 548 3663    Fax:  +44 (0)141 552 2079
sergei at stams.strath.ac.uk   http://www.stams.strath.ac.uk/~sergei
=================================================================



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