search for: validdatapartclass

Displaying 5 results from an estimated 5 matches for "validdatapartclass".

2003 Oct 11
1
Subclassing lm
...ta or slots of my own design. For starters: setClass("mylm", "lm") produces the somewhat cryptic: Warning message: Old-style (``S3'') class "mylm" supplied as a superclass of "mylm", but no automatic conversion will be peformed for S3 classes in: .validDataPartClass(cl, name) What does this imply? -Rob
2006 Jan 03
1
Extending a data frame with S4
...setClass("new-data.frame", representation("data.frame")) [1] "new-data.frame" Warning message: old-style ('S3') class "data.frame" supplied as a superclass of "new-data.frame", but no automatic conversion will be peformed for S3 classes in: .validDataPartClass(clDef, name) Do I need to be worried about this? > new("new-data.frame", data.frame()) Error in initialize(value, ...) : initialize method returned an object of class "data.frame" instead of the required class "new-data.frame" I guess this is related to the warni...
2004 Jul 22
2
Files and classes in a package?
...The name of the object (e.g,. a class or generic function) to find in the meta-data must be a single string (got an object of class "NULL") > traceback() 12: methodsPackageMetaName("C", name) 11: classMetaName(Class) 10: getClassDef(Class, where) 9: getClass(cl, TRUE) 8: .validDataPartClass(clDef, name) 7: reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, where) 6: makeClassRepresentation(Class, properties, superClasses, prototype, package, validity, access, version, sealed, where = where) 5: setClass("aclass", contains = "bclass",...
2020 Sep 24
2
Is it possible to simply the use of NULL slots (or at least improve the help files)?
Hi Martin, Thankyou for your response. I suspect that we're not going to agree on the main point. Making it trivially simple (as say Java) to set slots to NULL. So, I'll move on to the other points here. ***Note that cited text uses excerpts only.*** > setClassUnion("character_OR_NULL", c("character", "NULL")) > A = setClass("A", slots =
2020 Sep 24
0
Is it possible to simply the use of NULL slots (or at least improve the help files)?
...r", "numeric")) Error in setOldClass(c("character", "numeric")) : inconsistent old-style class information for "character"; the class is defined but does not extend "numeric" and is not valid as the data part In addition: Warning message: In .validDataPartClass(cl, where, dataPartClass) : more than one possible class for the data part: using "numeric" rather than "character" Martin Morgan ?On 9/24/20, 4:51 PM, "Abby Spurdle" <spurdle.a at gmail.com> wrote: Hi Martin, Thankyou for your response. I suspe...