[R] Nroff -> .Rd -> R-ex; html

Frank E Harrell Jr feh3k at cms.mail.virginia.edu
Wed Jun 6 18:39:16 CEST 2001

I am using R 1.2.3 on Linux Mandrake 7.2.
I have a ton of S Nroff help files that end
with source code typified by the following:

Last S statement in an example, e.g. X <- y
..KW models
..KW regression

When using R RMD Sd2Rd to create the .Rd file I get

X <- y

The } matches a { in \examples{ at the beginning
of the example code (started in Nroff by .EX).
When examples are extracted for R-ex the keywords
are in the example code.  Please advise on
a workaround or patch to Sd2Rd.  I hope to avoid
editing dozens of help files.

One minor different request:  In my nroff files I frequently
insure that lines are not run together by using
code such as

first line
..sp 0
second line
second author first line
..sp 0
second line

Sd2Rd puts blank lines around the above text lines,
and when the final html is made there are many
<p>   </p> pairs in the text resulting in doublespacing.  
If the scripts could
be slightly changed to treat .sp 0 so that ultimately
<p> </p> will not be the result that would be great.


Frank Harrell
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