Skip to content
Prev 69802 / 398525 Next

Conflict between xtable and Hmisc when using Sweave?

For fixing the problem you have, you need:

"xtable.mylabel<-" <- get("label<-.xtable", "package:xtable")

I.e., you need the replacement function.

One possibility of resolving the conflict, as I communicated with Frank, is
to make label() and label<-() in Hmisc the S3 default methods, as xtable
defines the methods for xtable, but provided no default methods.  This
probably has the minimal impact (if any) on backward compatibility in both
packages.

BTW, you should call print() rather than print.xtable().

Andy