Re: [R] warning creating an as.array method in a package

2010-12-02 Thread Michael Friendly
On 12/2/2010 8:58 AM, Michael Friendly wrote: Under ?methods the Note says Functions can have both S3 and S4 methods, and function showMethods will list the S4 methods (possibly none). Does the warning mean that I cannot (or should not) have an S3 as.array method in a package? The method works

Re: [R] warning creating an as.array method in a package

2010-12-02 Thread Michael Friendly
On 11/30/2010 5:59 PM, David Winsemius wrote: I'm guessing from this behavior on my system that it may be Matrix. > showMethods(as.array) Function: as.array (package base) x="ANY" x="Matrix" I'm still perplexed by this. Running R CMD install gives this warning: ** testing if installed packa

Re: [R] warning creating an as.array method in a package

2010-11-30 Thread David Winsemius
On Nov 30, 2010, at 5:43 PM, Michael Friendly wrote: [Env: R 2.11.1, Win Xp, using Eclipse/StatET] In a package I'm working on, I want to create as.matrix() and as.array() methods for a particular kind of object (log odds ratios). These are returned in a loddsratio object as the $coeffici