Re: [Rd] How to modify dots and dispatch NextMethod

2018-02-22 Thread Tomas Kalibera
On 02/22/2018 02:31 PM, Iñaki Úcar wrote: 2018-02-22 12:39 GMT+01:00 Tomas Kalibera : On 02/22/2018 12:07 PM, Iñaki Úcar wrote: 2018-02-22 10:29 GMT+01:00 Tomas Kalibera : The example is invoking NextMethod via an anonymous function, which is not allowed (see documentation for NextMethod). Th

Re: [Rd] How to modify dots and dispatch NextMethod

2018-02-22 Thread Iñaki Úcar
2018-02-22 12:39 GMT+01:00 Tomas Kalibera : > On 02/22/2018 12:07 PM, Iñaki Úcar wrote: >> >> 2018-02-22 10:29 GMT+01:00 Tomas Kalibera : >>> >>> The example is invoking NextMethod via an anonymous function, which is >>> not >>> allowed (see documentation for NextMethod). >> >> Thanks for your resp

Re: [Rd] How to modify dots and dispatch NextMethod

2018-02-22 Thread Tomas Kalibera
On 02/22/2018 12:07 PM, Iñaki Úcar wrote: 2018-02-22 10:29 GMT+01:00 Tomas Kalibera : The example is invoking NextMethod via an anonymous function, which is not allowed (see documentation for NextMethod). Thanks for your response. I definitely missed that bit. Normally one gets a runtime erro

Re: [Rd] How to modify dots and dispatch NextMethod

2018-02-22 Thread Iñaki Úcar
2018-02-22 10:29 GMT+01:00 Tomas Kalibera : > > The example is invoking NextMethod via an anonymous function, which is not > allowed (see documentation for NextMethod). Thanks for your response. I definitely missed that bit. > Normally one gets a runtime > error "'NextMethod' called from an anony

Re: [Rd] How to modify dots and dispatch NextMethod

2018-02-22 Thread Tomas Kalibera
The example is invoking NextMethod via an anonymous function, which is not allowed (see documentation for NextMethod). Normally one gets a runtime error "'NextMethod' called from an anonymous function", but not here as the anonymous function is called via do.call. I will fix so that there is

Re: [Rd] How to modify dots and dispatch NextMethod

2018-02-21 Thread Iñaki Úcar
I've set up a repo with a reproducible example of the issue described in my last email: https://github.com/Enchufa2/dispatchS3dots Iñaki 2018-02-20 19:33 GMT+01:00 Iñaki Úcar : > Hi all, > > Not sure if this belongs to R-devel or R-package-devel. Anyways... > > Suppose we have objects of class c

[Rd] How to modify dots and dispatch NextMethod

2018-02-20 Thread Iñaki Úcar
Hi all, Not sure if this belongs to R-devel or R-package-devel. Anyways... Suppose we have objects of class c("foo", "bar"), and there are two S3 methods c.foo, c.bar. In c.foo, I'm trying to modify the dots and forward the dispatch using NextMethod without any success. This is what I've tried so