search for: docomplete

Displaying 6 results from an estimated 6 matches for "docomplete".

Did you mean: nocomplete
2003 Sep 02
1
completeSubclasses() methods bug (PR#4051)
...() and fails because "aafGO" doesn't exist in that environment and "list" is sealed. completeSubclasses should be specifying my package for "where" instead of using the default. > library(annaffy) Error in setIs(class2, obji@superClass, extensionObject = obji, doComplete = FALSE) : Cannot create a setIs relation when neither of the classes ("aafGO" and "list") is local and modifiable in this package Error in setClass("aafGO", "aafList", prototype = list(), where = where) : Error in contained classes ("a...
2004 Oct 08
0
user interface and documentation of setIs and setAs, some suggestions (S4).
...",coerce=function(obj){obj@list},replace=function(obj,value){obj@list<-value}) 2) At the same time in the usage section: setIs(class1, class2, test=NULL, coerce=NULL, replace=NULL, by = character(), where = topenv(parent.frame()), classDef =, extensionObject = NULL, doComplete = TRUE) 3) and finally in the argument section: the object to 'class2', and to alter the object so that 'is(object, class2)' is identical to 'value'. I much more like how setAs is implemented, we cast _from_ _to_ and so the arguments in all this functions a...
2016 Mar 19
2
unary class union of an S3 class
...rt that comes from the prototype of the > class. The "array" class has a double vector with a dim attribute as its > prototype. That is all well understood. What is surprising is that > "ArrayLike" has the same prototype as "array". That happens via > setIs(doComplete=TRUE), called by setClassUnion(). When a class gains > its first non-virtual child, the parent assumes the prototype of its > child. I'm not sure why, but the logic is very explicit and I've come > to just accept it as a "feature". Never noticed that. Thanks for clarify...
2016 Mar 19
0
unary class union of an S3 class
...pes confer a data part that comes from the prototype of the class. The "array" class has a double vector with a dim attribute as its prototype. That is all well understood. What is surprising is that "ArrayLike" has the same prototype as "array". That happens via setIs(doComplete=TRUE), called by setClassUnion(). When a class gains its first non-virtual child, the parent assumes the prototype of its child. I'm not sure why, but the logic is very explicit and I've come to just accept it as a "feature". I ran into this some months ago when defining my own A...
2016 Mar 19
2
unary class union of an S3 class
On 03/18/2016 03:28 PM, Michael Lawrence wrote: > > On Fri, Mar 18, 2016 at 2:53 PM, Herv? Pag?s <hpages at fredhutch.org > <mailto:hpages at fredhutch.org>> wrote: > > Hi, > > Short story > ----------- > > setClassUnion("ArrayLike", "array") > > showClass("ArrayLike") # no slot > >
2016 Mar 19
0
unary class union of an S3 class
...om the prototype of the >> class. The "array" class has a double vector with a dim attribute as its >> prototype. That is all well understood. What is surprising is that >> "ArrayLike" has the same prototype as "array". That happens via >> setIs(doComplete=TRUE), called by setClassUnion(). When a class gains >> its first non-virtual child, the parent assumes the prototype of its >> child. I'm not sure why, but the logic is very explicit and I've come >> to just accept it as a "feature". >> > > Never no...