[Rd] translation with Rd.sty, Sweave and tex4th (PR#8016)

paulojus@est.ufpr.br paulojus at est.ufpr.br
Tue Jul 19 14:53:06 CEST 2005


Full_Name: Paulo Ribeiro
Version: 2.1-1
OS: Debian Linux
Submission from: (NULL) (200.103.144.24)


I'm using Sweave with tex4th to generate xhtml documents
from documents created using Sweave which include \usepackage{Rd}
in the preamble

However there seems to be a problem with \Link defined in
Rd.sty, since this is also defined in tex4ht.sty

My workaround was to replace the lines with
\newcommand{\Link} by \providecommand{\Link}
in Rd.sty

I'm therefore wondering whether this is the best solution, if there is any
other
and, if so, whether this could be modified in the original Rd.sty shipped with
R.

A possible inconvenient of the suggested above
is that \providecommand seems to be specific to
LaTeX and apparently does not work with TeX.
Another possibility, as suggested by Kurt, would be "emulate" namespaces
with something of the type \Rd at Link 

with best regards



More information about the R-devel mailing list