Re: [Rd] Define replacement functions

2015-05-04 Thread Hadley Wickham
On Mon, May 4, 2015 at 12:06 PM, wrote: > No. I fixed that, the NAMESPACE file now contains: > > S3method("[[<-", mylist) > S3method("$<-", mylist) > > It still does not work. I also created a print method (print.mylist) which > did work out of the box, regardless of being in the NAMESPACE file

Re: [Rd] Define replacement functions

2015-05-04 Thread soeren . vogel
No. I fixed that, the NAMESPACE file now contains: S3method("[[<-", mylist) S3method("$<-", mylist) It still does not work. I also created a print method (print.mylist) which did work out of the box, regardless of being in the NAMESPACE file or not. Could it be somehow in here (also in my NAMES

Re: [Rd] Define replacement functions

2015-05-04 Thread Hadley Wickham
Did you export the S3 methods in the NAMESPACE? Hadley On Mon, May 4, 2015 at 7:52 AM, wrote: > Hello > > I tried to define replacement functions for the class "mylist". When I test > them in an active R session, they work -- however, when I put them into a > package, they don't. Why and how