[R] Sd2Rd Hangup

Bartz, Kevin Kevin.Bartz at FMR.COM
Tue Jun 26 17:10:32 CEST 2001

I've been converting a number of .sgml S-documentation filed to .Rd format
and a few persistent complications--all involving the documentation's
examples--have arisen every time I issue the standard R CMD check to prepare
my project for building. The impression I get is that the check script
simply tries to execute every R command in the included documentation's
example{ } sections. But since Sd2Rd essentially dumps an S-documentation
file's example contents into the new .Rd file, formatting problems crop up.
Correct me if I'm wrong, but Sd2Rd neither strips each example line's
opening greater-than (">") nor prunes the output. And then check barks at me
when R can't execute either of the ">"-padded example code or the actual
output, which I didn't even intend for it to try to interpret in the first
place. In the meantime, I've been using a Perl script that sifts through a
set of .Rd's and makes the proper connections, stripping all ">"s and
sticking "\dontrun"s around the output, but I was wondering if there's a
better or built-in way. Any advice?

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