Skip to content
Prev 25953 / 398502 Next

Converting R help files to S-Plus 6 sgml,html

I have help files in several formats.  Up until now I have converted nroff files to S-Plus 6 sgml and html files using 

 Splus doc_to_S ... (creates .sgml file)
 Splus HINSTALL ... (creates .sgm and .html files)

I maintain master help files in R .Rd files, and for some of my functions converting from .Rd to .sgm using R CMD Rdconv --type=Ssgm ... produces better .sgm files than beginning with the nroff files, as doc_to_s or HINSTALL can mess up help files with USAGE components showing more than one function invocation.  I think I can put the output of R CMD Rdconv directly into e.g. /usr/local/splus/library/foo/.Data/__Shelp/*.sgm.  But then I don't know how to create the html entry in /usr/local/splus/library/foo/.Data/__Hhelp/*.html.  Any help or corrections to my approach would be most appreciated.

Frank