search for: makeextend

Displaying 3 results from an estimated 3 matches for "makeextend".

Did you mean: makeextends
2005 Nov 22
1
failure in `setClass' examples
...test = function(obj) {ncol(slot(obj, "y")) == 1})) Warning message: there is no automatic definition for as(object, "trackCurve") <- value when object has class "trackMultiCurve" and no 'replace' argument was supplied; replacement will be an error in: makeExtends(class1, class2, coerce, test, replace, by, classDef1 = classDef, R> setIs("trackMultiCurve", "trackCurve", + test = function(obj) {ncol(slot(obj, "y")) == 1}, + coerce = function(obj) { + new("trackCurve", + x...
2007 Jul 16
1
S4 coerce
...t;, "DBIConnection", coerce = function(x) x at con) Warning messages: 1: there is no automatic definition for as(object, "DBIConnection") <- value when object has class "TSconnection" and no 'replace' argument was supplied; replacement will be an error in: makeExtends(class1, class2, coerce, test, replace, by, classDef1 = classDef, 2: methods currently exist for coercing from "TSconnection" to "DBIConnection"; they will be replaced. in: ..removePreviousCoerce(class1, class2, where, prevIs) # (warning may be important, but I don't und...
2010 Feb 02
1
S4 setClass / initialize misunderstanding
Hi, I recently ran into this problem. I couldn't find any mention of it in the setClass documentation. setClass("Foo", representation(file = "character")) setMethod("initialize", "Foo", function(.Object, file) { print(file) }) setClass("Bar", contains = "Foo") And the error: Error in print(file) : argument "file" is