Displaying 5 results from an estimated 5 matches for "dispatchs3dot".
Did you mean:
dispatchs3dots
2018 Feb 22
2
How to modify dots and dispatch NextMethod
...ring
this problem.
I don't think there is a way to replace (unnamed) arguments in dots for
NextMethod.
Tomas
On 02/21/2018 02:16 PM, I?aki ?car wrote:
> 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 <i.ucar86 at gmail.com>:
>> 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...
2018 Feb 22
2
How to modify dots and dispatch NextMethod
...ink there is a way to replace (unnamed) arguments in dots for
>> NextMethod.
> That's a pity. IMHO, it should be some mechanism for that, but dots
> are special in inscrutable ways.
>
> Anyway, for anyone insterested, I found a workaround:
>
> https://github.com/Enchufa2/dispatchS3dots#workaround
Even though technically this won't be too hard, I don't think NextMethod
should be made any more complex than it is now. There should always be a
way to implement special dispatch scenarios in R and your workaround
shows it is possible specifically in your scenario.
Tomas
&...
2018 Feb 20
2
How to modify dots and dispatch NextMethod
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 far:
c.foo <- function(..., recursive=FALSE) {
dots <-
2018 Feb 21
0
How to modify dots and dispatch NextMethod
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 <i.ucar86 at gmail.com>:
> 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...
2018 Feb 22
0
How to modify dots and dispatch NextMethod
...d) arguments in dots for
>>> NextMethod.
>>
>> That's a pity. IMHO, it should be some mechanism for that, but dots
>> are special in inscrutable ways.
>>
>> Anyway, for anyone insterested, I found a workaround:
>>
>> https://github.com/Enchufa2/dispatchS3dots#workaround
>
> Even though technically this won't be too hard, I don't think NextMethod
> should be made any more complex than it is now. There should always be a way
> to implement special dispatch scenarios in R and your workaround shows it is
> possible specifically in yo...