search for: nonconformingmethod

Displaying 3 results from an estimated 3 matches for "nonconformingmethod".

2015 Jan 29
1
[Q] Get formal arguments of my implemented S4 method
...rs <jmc at r-project.org> wrote: > I wouldn't want to add more to the current approach; if someone would like > to devote some time, the much preferable idea IMO would be to replace the > whole mechanism. > > Here's one suggestion: > > 1. have a class, say "nonConformingMethod" for method definitions that > diverge in the argument list. > > 2. the internal dispatch code checks the class of the selected definition > (this can likely be done with little cost in the standard case). In the > case of non-conforming, the arguments are rematched to define...
2015 Jan 29
2
[Q] Get formal arguments of my implemented S4 method
I wish it didn't have to depend on the name '.local'. Back when I wrote a lot of S4 methods I avoided the auto-generated .local and named the local function something that made sense so that is was easier for a user to track down the source of an error. E.g., define the generic QQQ with numeric and integer methods: setGeneric("QQQ", function(x, ...)NULL)
2015 Jan 29
0
[Q] Get formal arguments of my implemented S4 method
I wouldn't want to add more to the current approach; if someone would like to devote some time, the much preferable idea IMO would be to replace the whole mechanism. Here's one suggestion: 1. have a class, say "nonConformingMethod" for method definitions that diverge in the argument list. 2. the internal dispatch code checks the class of the selected definition (this can likely be done with little cost in the standard case). In the case of non-conforming, the arguments are rematched to define the method's other a...