Displaying 6 results from an estimated 6 matches for "insertmethod".
2002 May 22
1
signature match in setMethod (PR#1592)
Full_Name: Tim Keitt
Version: 1.5
OS: Linux
Submission from: (NULL) (128.227.201.237)
The function "setMethod" makes the following call to "insertMethod":
allMethods <- insertMethod(allMethods, signature, fnames[1:length(signature)],
asMethodDefinition(definition, signature))
If I understand insertMethod correctly, the third argument should be the names
of the formal arguments of the method. However, this fails if the signature i...
2003 Sep 29
0
problems trying to extend a class
Hi all,
I have been using for quite a long time a script where a class extends
another one (without trouble). But I now have problems of that kind
while trying to run the script :
Error in insertMethod(methods, sig, args, def, TRUE) :
inserting method corresponding to empty signature
I think this may be because the way I wrote the scripts could be
deprecated. Indeed I recently upgraded to R-1.7.1 (I compiled it from
source). I use R on a RedHat 8.0 system.
This is how my classes look...
2003 Sep 09
0
problem trying to use a superclass on R-1.7.1
Hi dear helpers,
I have been using for quite a long time a script where a class extends
another one (without trouble). But I now have problems of that kind
while trying to run the script :
Error in insertMethod(methods, sig, args, def, TRUE) :
inserting method corresponding to empty signature
I think this may be because the way I wrote the scripts could be
deprecated. Indeed I recently downloaded R-1.7.1 (binary version).
This is how my classes look like :
#-----------------------------------...
2005 Mar 22
0
setAs between a new S4 class and "POSIXlt"
...data = from)
})
## Create a new "dtime" object:
(x1 <- new("dtime"))
str(x1)
## Transformation to "POSIXlt" class works well:
(y1 <- as(x1, "POSIXlt"))
str(y1)
## Transformation to "dtime" class fails
as(y2, "dtime")
> Fehler in insertMethod(methods, sig, args, def, TRUE) :
inserting method into non-methods-list object (class "NULL")
## This works properly
new("dtime", data = y2)
####################################################################
## Now I put another setAs for the Subclass "POSIXt"
s...
2005 Mar 29
0
setAs between a new S4 class and "POSIXlt"
...ime" to "POSIXlt" works well
(y1 <- as(x1, "POSIXlt"))
str(y1)
## Create a new "POSIXlt" object
(y2 <- as.POSIXlt("2004/06/01"))
str(y2)
## Transformation from "POSIXlt" to "dtime" fails
as(y2, "dtime")
> Fehler in insertMethod(methods, sig, args, def, TRUE) :
inserting method into non-methods-list object (class "NULL")
## This works properly
new("dtime", data = y2)
## Now I put another setAs for the Subclass "POSIXt"
setAs("POSIXt", "dtime", def = function(from) {
n...
2005 Jun 13
5
slow loading with lme4
it takes a long time to load the lme4 package.anyone else encounter this problem?
> system.time(library(lme4))
佋佖伻侂佇佽佉仾伒伳伋佁伡伃伆侟仯伜Matrix
佋佖伻侂佇佽佉仾伒伳伋佁伡伃伆侟仯伜lattice
[1] 19.90 0.30 25.56 NA NA
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status Patched
major 2
minor