search for: rematchdefinit

Displaying 11 results from an estimated 11 matches for "rematchdefinit".

Did you mean: rematchdefiniton
2007 Apr 02
0
Object problems with Generic and rematchDefinition
Hello all, Let me try this again with some code. I am trying to make a new object and it's not working. I get : Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : methods can add arguments to the generic only if '...' is an argument to the generic as my error. I have included my code. It is from the xcms package. Any help would be great even if it's just telling me what the error means. I...
2019 Jul 04
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...) {conformMethod() is only called in ? ? > one place in our code base, namely from setMethod()} : as a matter of fact, I've been brave for now, left the change to conformMethod()? and started to fix the constructed .local() calls which are created in? conformMethod()'s sibling, which is rematchDefinition(). It seems that this builds e.g. Matrix {with its gazillion setMethod()s} and that continues to run its own tests.? OTOH, Matrix may not trigger the situations that are dealt with here at all, as the signature() are rarely longer than three, and at some point in time I had made long passes thr...
2019 Jul 01
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true
...) {conformMethod() is only called in > one place in our code base, namely from setMethod()} : as a matter of fact, I've been brave for now, left the change to conformMethod() and started to fix the constructed .local() calls which are created in conformMethod()'s sibling, which is rematchDefinition(). It seems that this builds e.g. Matrix {with its gazillion setMethod()s} and that continues to run its own tests. OTOH, Matrix may not trigger the situations that are dealt with here at all, as the signature() are rarely longer than three, and at some point in time I had made long passes thr...
2005 Jan 13
3
as.character methods
...with an as.character method following the above usage, but I get the below error telling me that ... isn't in the generic for as.character. > setClass("tmp", "numeric") > setMethod("as.character", "tmp", function(x, ...) paste(x, c(...))) Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : Methods can add arguments to the generic only if "..." is an argument to the generic Am I reading the documentation incorrectly? How do I correctly pass the ... object to the method for this "tmp" object? However I note that...
2005 Jan 13
3
as.character methods
...with an as.character method following the above usage, but I get the below error telling me that ... isn't in the generic for as.character. > setClass("tmp", "numeric") > setMethod("as.character", "tmp", function(x, ...) paste(x, c(...))) Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : Methods can add arguments to the generic only if "..." is an argument to the generic Am I reading the documentation incorrectly? How do I correctly pass the ... object to the method for this "tmp" object? However I note that...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...) {conformMethod() is only called in > one place in our code base, namely from setMethod()} : as a matter of fact, I've been brave for now, left the change to conformMethod() and started to fix the constructed .local() calls which are created in conformMethod()'s sibling, which is rematchDefinition(). It seems that this builds e.g. Matrix {with its gazillion setMethod()s} and that continues to run its own tests. OTOH, Matrix may not trigger the situations that are dealt with here at all, as the signature() are rarely longer than three, and at some point in time I had made long passes thr...
2005 Nov 18
3
Method for $
.... I have tried setMethod("$", signature(x="myclass"), function(x,slotname){ x at slotname } ) This produced the error message: In method for function "$": expanding the signature to include omitted arguments in definition: name = "missing" Error in rematchDefinition(definition, fdef, mnames, fnames, signature) : methods can add arguments to the generic only if '...' is an argument to the generic My searches for a solution of this problem have not been successful. Can someone help? Thanks and regards, Ulrike Gr??mping, Berlin
2019 Jun 29
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
>>>>> Martin Maechler >>>>> on Sat, 29 Jun 2019 10:33:10 +0200 writes: >>>>> peter dalgaard >>>>> on Fri, 28 Jun 2019 16:20:03 +0200 writes: >> > On 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote: >> > >> >>>>>> Henrik Bengtsson
2020 Apr 24
0
R 4.0.0 is released
...consistently, thanks to suggestions by Suharto Anggono. * conformMethod() now works correctly in cases containing a "&& logic" bug, reported by Henrik Bengtsson. It now creates methods with "missing" entries in the signature. Consequently, rematchDefinition() is amended to use appropriate .local() calls with named arguments where needed. * format.default(*, scientific = FALSE) now corresponds to a practically most extreme options(scipen = n) setting rather than arbitrary n = 100. * format(as.symbol("foo")) now...
2020 Apr 24
0
R 4.0.0 is released
...consistently, thanks to suggestions by Suharto Anggono. * conformMethod() now works correctly in cases containing a "&& logic" bug, reported by Henrik Bengtsson. It now creates methods with "missing" entries in the signature. Consequently, rematchDefinition() is amended to use appropriate .local() calls with named arguments where needed. * format.default(*, scientific = FALSE) now corresponds to a practically most extreme options(scipen = n) setting rather than arbitrary n = 100. * format(as.symbol("foo")) now...
2020 Apr 24
0
R 4.0.0 is released
...consistently, thanks to suggestions by Suharto Anggono. * conformMethod() now works correctly in cases containing a "&& logic" bug, reported by Henrik Bengtsson. It now creates methods with "missing" entries in the signature. Consequently, rematchDefinition() is amended to use appropriate .local() calls with named arguments where needed. * format.default(*, scientific = FALSE) now corresponds to a practically most extreme options(scipen = n) setting rather than arbitrary n = 100. * format(as.symbol("foo")) now...