Re: [R] restrictions for attribute access Watchdog: Virus checked

2008-04-02 Thread Henrique Dallazuanna
You've tried: tab - [EMAIL PROTECTED] ? On Wed, Apr 2, 2008 at 7:59 AM, Benjamin Polak [EMAIL PROTECTED] wrote: Hello everybody, I have a problem with accessing class attributes. I think it might be due to namespace access restrictions or something similar, but I'm unable to figure it

Re: [R] restrictions for attribute access Watchdog: Virus checked

2008-04-02 Thread Henrique Dallazuanna
Work's for me: summary(lmer(Reaction ~ Days + (Days|Subject), sleepstudy))@AICtab On Wed, Apr 2, 2008 at 9:36 AM, Benjamin Polak [EMAIL PROTECTED] wrote: Thanks, but it doesn't work, I get the error message: 'no slot of name AICtab for this object of class table' On Wednesday, 2. April

Re: [R] restrictions for attribute access Watchdog: Virus checked

2008-04-02 Thread Benjamin Polak
Thanks for your help, Henrique! It's the same problem as I stated in my original post. The code works if it runs as a regular R script, but not if it runs within a custom package. Somehow, if the code is in the package, it doesn't see the attribute anymore. I don't understand why. I've played

Re: [R] restrictions for attribute access Watchdog: Virus checked

2008-04-02 Thread Prof Brian Ripley
On Wed, 2 Apr 2008, Henrique Dallazuanna wrote: Work's for me: summary(lmer(Reaction ~ Days + (Days|Subject), sleepstudy))@AICtab I think the issue is that in his package he is not seeing the summary S4 generic from Matrix (which is the one lme4 sets methods on). The package needs to

Re: [R] restrictions for attribute access Watchdog: Virus checked

2008-04-02 Thread Benjamin Polak
Ah, that was it! I added importFrom(Matrix, summary) to my NAMESPACE file, and now it works. Thanks Ben On Wednesday, 2. April 2008 14:59, Prof Brian Ripley wrote: On Wed, 2 Apr 2008, Henrique Dallazuanna wrote: Work's for me: summary(lmer(Reaction ~ Days + (Days|Subject),