Displaying 7 results from an estimated 7 matches for "rclassutil".
Did you mean:
rclassutils
2004 May 27
3
"privileged slots"
Hi all,
in the help for RClassUtils I found the expression "privileged slots" in
function "checkSlotAssignment" with the explanation:
/privileged slots (those that can only be set by accesor functions
defined along with the class itself)/
I thought all slots of a (not private) class can be a accessed by a use...
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...tClassDef -> .requirePackage
# Execution halted
(Here it has to be a show() call to trigger the package load, not just
dimnames().)
I have verified that the following patch prevents the failure in
loading the namespace, but which other problems could it introduce?
Index: src/library/methods/R/RClassUtils.R
===================================================================
--- src/library/methods/R/RClassUtils.R (revision 87194)
+++ src/library/methods/R/RClassUtils.R (working copy)
@@ -1812,6 +1812,9 @@
## real version of .requirePackage
..requirePackage <- function(package, mustFind = TRU...
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...alted
> (Here it has to be a show() call to trigger the package load, not just
> dimnames().)
> I have verified that the following patch prevents the failure in
> loading the namespace, but which other problems could it introduce?
> Index: src/library/methods/R/RClassUtils.R
> ===================================================================
> --- src/library/methods/R/RClassUtils.R (revision 87194)
> +++ src/library/methods/R/RClassUtils.R (working copy)
> @@ -1812,6 +1812,9 @@
> ## real version of .requirePackage
> ..r...
2006 Feb 27
0
method dispatch and in-place modification? - unclass, RemoveClass, getDataPart, method dispatch
...emoveClass()" in R/src/main/object.c which says it is
__unused__ but seems to do what I would like it to do.
So I tried a S4 method dispatch mechanism, but it is 3 times *slower*
than unclass, and it seems to be due to the switch() statement inside
getDataPart() (in R/src/library/methods/R/RClassUtils.R)
which typically copies the object three times? (I think
"attributes(value) <- NULL" also copies)
> getDataPart <-
> function (object)
> {
> ...
> switch(dataPart,
...
> array = {
> value <- object
> attribute...
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
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
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...MethodWithNext-class text html latex
Methods text html latex
MethodsList-class text html latex
MethodsList text html latex
NextMethod text html latex example
RClassUtils text html latex
RMethodUtils text html latex
Session text html latex
StructureClasses text html latex
TraceClasses text html latex
as...