search for: assignclassdef

Displaying 2 results from an estimated 2 matches for "assignclassdef".

2018 Oct 26
2
Bug report for sealClass() in Core-maintained package "methods"
...ere <- findClass(Class, unique = "sealing the class", where = where) Because findClass() always returns a list (even if argument 'unique' contains a character string), this assigns a list of length 1 to variable 'where'. This then throws an error in the subsequent line assignClassDef(Class, classDef, where) For this reason, the abovementioned line should instead read: if (missing(where)) where <- findClass(Class, unique = "sealing the class", where = where)[[1]] Thanks very much, Adam Gower agower at bu.edu<mailto:agower at bu.edu> [[alternative HTML ver...
2018 Oct 27
0
Bug report for sealClass() in Core-maintained package "methods"
...Class, unique = "sealing the class", where = where) > > Because findClass() always returns a list (even if argument 'unique' contains a character string), this assigns a list of length 1 to variable 'where'. > This then throws an error in the subsequent line > assignClassDef(Class, classDef, where) > > For this reason, the abovementioned line should instead read: > if (missing(where)) where <- findClass(Class, unique = "sealing the class", where = where)[[1]] > > Thanks very much, > Adam Gower > agower at bu.edu<mailto:agower at b...