Displaying 3 results from an estimated 3 matches for "nodeproto".
2004 Mar 16
2
Documentation on how to put classes and methods in packages with namespace?
...uot;, canvas = "tkwin",
tags = "list", id = "numeric", visibleVertices = "numeric",
graphEdges = "list", blockEdges = "list", factorVertices = "list",
factorEdges = "list"))
setClass("NodeProto", representation(color = "character",
label = "character", label.position = "numeric"), prototype(color = "black",
label = "Label", label.position = c(0, 0, 0)))
### .... Many lines deleted ....
if (!isGeneric("...
2004 Mar 16
0
VS: Documentation on how to put classes and methods in packages with namespace?
...;tkwin",
> tags = "list", id = "numeric", visibleVertices = "numeric",
> graphEdges = "list", blockEdges = "list", factorVertices = "list",
> factorEdges = "list"))
> setClass("NodeProto", representation(color = "character",
> label = "character", label.position = "numeric"), prototype(color = "black",
> label = "Label", label.position = c(0, 0, 0)))
>
> ### .... Many lines deleted ....
>...
2004 Mar 16
1
SV: Documentation on how to put classes and methods in packageswith namespace?
...ethods)" by "require(methods)").
The secound run, with [Previously saved workspace restored],
produces the same result as in my first letter of today:
> library(dynamicGraph)
Loading required package: tcltk
> b <- DynamicGraph(1:10)
Error in getClass(superClass) : "NodeProto" is not a defined class
I also (again) read pages 13 and 16-17 (and 73) of
"Writing R Extensions" of 2004-03-15,
and the manual pages of "setClass":
where: For 'setClass' and 'removeClass', the environment in which to
store or remove the defi...