search for: basicclass

Displaying 17 results from an estimated 17 matches for "basicclass".

Did you mean: baseclass
2008 Dec 30
1
help on windows 32 compile... R-2.8.1
...etup, etc... the compile progress up to a point and then complains: ... DLL made installing DLL collecting R files preparing package methods for lazy loading dumping R code in package `methods' initializing class and method definitions ...done make[4]: *** No rule to make target `inst/BasicClasses.R', needed by `<DIR>'. Stop. any help would be appreciated. thanks [[alternative HTML version deleted]]
2004 Aug 12
1
correlation structures in NLME
...uot;, name) : The name of the object (e.g,. a class or generic function) to find in the meta-data must be a single string (got a character vector of length 2) In addition: Warning message: the condition has length > 1 and only the first element will be used in: if (!is.na(match(Class, .BasicClasses))) return(newBasic(Class, Thank you! Michael Jerosch-Herold
2006 Jul 17
1
Variance functions in package nlme
...vf1Ident, Orthodont) Error in getClass(Class) : c("\"varIdent\" is not a defined class", "\"varFunc\" is not a defined class") In addition: Warning message: the condition has length > 1 and only the first element will be used in: if (!is.na(match(Class, .BasicClasses))) return(newBasic(Class, Can anybody give me a hint, what's going wrong here? Thanks a lot, Thilo Reference: Jose C. Pinheiro & Douglas M. Bates (2000) Mixed-Effects Models in S and S-PLUS. Springer, New York. -- Thilo Kellermann Department of Psychiatry and Psychotherapy RWTH Aa...
2020 Sep 24
2
Is it possible to simply the use of NULL slots (or at least improve the help files)?
...racter", "NULL")) > A = setClass("A", slots = c(x = "character_OR_NULL")) I think the above construct needs to be documented much more clearly. i.e. In the introductory and details pages for S4 classes. This is something that many people will want to do. And BasicClasses or NULL-class, are not the most obvious place to start looking, either. Also, I'd recommend the S4 authors, go one step further. Include character_OR_NULL, numeric_OR_NULL, etc, or something similar, in S4's predefined basic classes. Otherwise, contributed packages will (eventually) end...
2020 Sep 23
3
Is it possible to simply the use of NULL slots (or at least improve the help files)?
As far as I can tell, there's no trivial way to set arbitrary S4 slots to NULL. Most of the online examples I can find, use setClassUnion and are about 10 years old. Which, in my opinion, is defective. There's nothing "robust" about making something that should be trivially simple, really complicated. Maybe there is a simpler way, and I just haven't worked it out, yet. But
2015 May 13
2
Unexpected failure when calling new() with unnamed arg and
...n empty ordinary integer vector? > > Interesting .. and at least worth following. > > One problem and historical reason for the current setup seems > that the "formula" S3 class is not from 'base' but 'stats' : > > R's source, src/library/methods/R/BasicClasses.R, > lines 524 ff has the following comment block > > | .OldClassesPrototypes is a list of S3 classes for which prototype > | objects are known & reasonable. The classes will reappear in > | .OldClassesList, but will have been initialized first in > | .InitBasicClasses....
2020 Sep 24
0
Is it possible to simply the use of NULL slots (or at least improve the help files)?
I did ?"NULL<tab> at the command line and was lead to ?"NULL-class" and the BasicClasses help page in the methods package. getClass("NULL"), getClass("character") show that these objects are unrelated, so a class union is the way to define a class that is the union of these. The essence of the behavior you would like is setClassUnion("character_OR_NULL&qu...
2015 May 12
2
Unexpected failure when calling new() with unnamed arg and
Hi, The man page for new() suggests that if 'a' is an object with slots "slot1" and "slot2" and C is a class that extends the class of 'a', then the 2 following calls should be equivalent: new("C", a, ...) new("C", slot1=a at slot1, slot2=a at slot2, ...) This is generally the case but I just ran into a situation where it's not.
2020 Sep 24
0
Is it possible to simply the use of NULL slots (or at least improve the help files)?
...NULL")) > A = setClass("A", slots = c(x = "character_OR_NULL")) I think the above construct needs to be documented much more clearly. i.e. In the introductory and details pages for S4 classes. This is something that many people will want to do. And BasicClasses or NULL-class, are not the most obvious place to start looking, either. Also, I'd recommend the S4 authors, go one step further. Include character_OR_NULL, numeric_OR_NULL, etc, or something similar, in S4's predefined basic classes. Otherwise, contributed packages wi...
2015 Oct 08
1
Unexpected failure when calling new() with unnamed arg and
...llowing. >>> >>> One problem and historical reason for the current setup >>> seems that the "formula" S3 class is not from 'base' but >>> 'stats' : >>> >>> R's source, src/library/methods/R/BasicClasses.R, lines >>> 524 ff has the following comment block >>> >>> | .OldClassesPrototypes is a list of S3 classes for >>> which prototype | objects are known & reasonable. The >>> classes will reappear in | .OldClassesList, but will...
2005 Nov 03
1
Fitting heteroscedastic linear models/ problems with varIdent of nlme
...-initialize(vi,dat2) Error in getClass(Class) : c("\"varIdent\" is not a defined class", "\"varFunc\" is not a defined class") In addition: Warning message: the condition has length > 1 and only the first element will be used in: if (!is.na(match(Class, .BasicClasses))) return(newBasic(Class, >
2020 Oct 26
0
Change to I() in R 4.1
...------------ --- failure: length > 1 in coercion to logical --- --- srcref --- : --- package (from environment) --- methods --- call from context --- showDefault(object) --- call from argument --- !is.null(clDef) && isS4(object) && is.na(match(clDef at className, .BasicClasses)) --- R stacktrace --- where 1: showDefault(object) where 2: Error in showDefault(object) : cannot get a slot ("slots") from an object of type "NULL" > > Unfortunately there is a bunch of code around that calls I() on S4 > objects, admittedly not necessarily f...
2020 Oct 23
2
Change to I() in R 4.1
Hi there, Is that change in R-devel intentional? library(Matrix) m <- as(matrix(c(0, 1)), "sparseMatrix") isS4(m) # [1] TRUE x <- I(m) # Warning message: # In `class<-`(x, unique.default(c("AsIs", oldClass(x)))) : # Setting class(x) to multiple strings ("AsIs", "dgCMatrix", ...); result will no longer be an S4 object
2015 May 13
0
Unexpected failure when calling new() with unnamed arg and
...ot;integer") returns > an empty ordinary integer vector? Interesting .. and at least worth following. One problem and historical reason for the current setup seems that the "formula" S3 class is not from 'base' but 'stats' : R's source, src/library/methods/R/BasicClasses.R, lines 524 ff has the following comment block | .OldClassesPrototypes is a list of S3 classes for which prototype | objects are known & reasonable. The classes will reappear in | .OldClassesList, but will have been initialized first in | .InitBasicClasses. NB: the methods package wi...
2015 Oct 08
0
Unexpected failure when calling new() with unnamed arg and
...> >> >> Interesting .. and at least worth following. >> >> One problem and historical reason for the current setup seems >> that the "formula" S3 class is not from 'base' but 'stats' : >> >> R's source, src/library/methods/R/BasicClasses.R, >> lines 524 ff has the following comment block >> >> | .OldClassesPrototypes is a list of S3 classes for which prototype >> | objects are known & reasonable. The classes will reappear in >> | .OldClassesList, but will have been initialized first in >&g...
2020 Oct 30
2
Change to I() in R 4.1
...coercion to logical --- > --- srcref --- > : > --- package (from environment) --- > methods > --- call from context --- > showDefault(object) > --- call from argument --- > !is.null(clDef) && isS4(object) && is.na(match(clDef at className, > .BasicClasses)) > --- R stacktrace --- > where 1: showDefault(object) > where 2: Error in showDefault(object) : > cannot get a slot ("slots") from an object of type "NULL" The way I interpret this is that 'IM' breaks validObject(). This is not exactly the same as...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...text html latex example lqs text html latex example predict.lqs text html latex example >>> Building/Updating help pages for package `methods' Formats: text html latex example BasicClasses text html latex BasicFunctions text html latex Classes text html latex EmptyMethodsList-class text html latex EnvironmentClass text html latex GenericFunctions...