From f.harrell at vanderbilt.edu  Wed Apr 24 05:22:38 2013
From: f.harrell at vanderbilt.edu (Frank Harrell)
Date: Tue, 23 Apr 2013 20:22:38 -0700 (PDT)
Subject: [Rd] Problem with S3 method dispatch and NAMESPACE
Message-ID: <1366773758314-4665179.post@n4.nabble.com>

I have updated the rms package to extensively use NAMESPACE.  I cannot get
certain S3 methods to dispatch.  For example I have in NAMESPACE

S3method(anova, rms)
S3method(latex, anova.rms)

anova.rms produces an object of class "anova.rms" and there is a
latex.anova.rms function in rms.  But when I do latex(anova(fit)) I get an
invocation of latex.default.

I have tried using "anova.rms" and `anova.rms` in S3method() to no avail.

Any help appreciated.  I'm using R 2.15.3
Frank



-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context: http://r.789695.n4.nabble.com/Problem-with-S3-method-dispatch-and-NAMESPACE-tp4665179.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] Problem with S3 method dispatch and NAMESPACE
Frank Harrell