search for: isvirtualclass

Displaying 4 results from an estimated 4 matches for "isvirtualclass".

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
2014 Sep 17
1
issue with compiling r6
...U Options not enabled: memory profiling make fails at: byte-compiling 'methods' initializing class and method definitions ...Error: .onLoad failed in loadNamespace() for 'methods', details: call: new("classRepresentation") error: could not find function "isVirtualClass" The only other oddity of my system/potential clue is that symbolic links sometimes behave strangely because I am working on a VirtualBox virtual machine with a virtual Linux filesystem layered over an HGFS filesystem. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEB...
2009 Mar 29
1
Recent setClass fails where previous succeeded
These lines of code setClass("A", representation(x="numeric")) setMethod(initialize, "A", function(.Object, ...) stop("oops")) setClass("B", representation("A")) result in > setClass("B", representation("A")) Error in initialize(value, ...) : oops in R version 2.9.0 alpha (2009-03-28 r48239) R version 2.10.0
2006 Jan 19
2
creating objects with a slot of class formula, using new
Hi, This works fine. >setClass("a",representation(b="list",c="list")) >new("a",b=list(7)) >An object of class "a" Slot "b": [[1]] [1] 7 Slot "c": list() But, now suppose you want a slot to accept an object of class formula... >setClass("a",representation(b="list",c="formula"))