Skip to content

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

2 messages · Frank E Harrell Jr, Brian Ripley

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

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

X <- y
\keyword{models}
\keyword{regression}
}

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

..AU
first line
..sp 0
second line
..PP
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.

Thanks!

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Wed, 6 Jun 2001, Frank E Harrell Jr wrote:

            
(one dot only?)
Are you sure this is 1.2.3's Sd2Rd: 1.2.2's did that and I
fixed it?  I've just tried about 20 examples in 1.2.3
without problems, so can you send me an example?
Again, can you give me an example?  It looks trivial to add.