[R] User defined macros for Rd-files?

Sergei Zuyev sergei at stams.strath.ac.uk
Thu Apr 18 01:34:37 CEST 2002


Dear R-developers,

I am trying to make use of my own defined macros in Rd-files in order I could 
simply type, say, \Splus, to get a font similar to \R in help files. So I put 
the corresponding entry in Rd.cfg which now contains the line:
\newcommand{\Splus}{{\normalfont\textsf{Splus}}}
similar to the way \R defined in Rd.sty. So now so good:
R CMD Rd2dvi generates a dvi-file with a proper font. But building the 
package and documentation just ignores definitions in Rd.cfg.
1. Is there a way to define macros which then will be understood by R CMD 
build and install generating the html and text help files also?
2. I experimented with Rd.cfg and found that it is found only if it is in the 
same directory as Rd.sty (at least on my machine). It would, however, be 
logical to have it where the package's Rd-files are held so the macros could 
be different for different packages. Also a user may not have an access to 
the R_HOME. Is there a way around it?

Thanks for your great efforts and best wishes!
Sergei

PS. When replying, could you, please, send a copy to my email.



-- 
======================================================
                                      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
E-mail: sergei at stams.strath.ac.uk   http://www.stams.strath.ac.uk
======================================================
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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