Displaying 3 results from an estimated 3 matches for "c_r_getclassfromcache".
2016 Jun 26
2
3 minor issues with getClass 'resolve.msg' arg
...---
It would be very helpful if the warning message was giving the name of
the other package. I was in a session with 50+ packages attached or
loaded via a namespace when I saw the warning. Took me a while to
identify the other package, which I finally managed to do with:
names(.Call(methods:::C_R_getClassFromCache, "Annotated",
methods:::.classTable))
3rd issue
---------
Calling getClass() with 'resolve.msg=FALSE' only removes one of the 2
warnings:
> tmp <- getClass("Annotated", resolve.msg=FALSE)
Found more than one class "Annotated" in cache; using the...
2015 Nov 04
1
setOldClass("xts")
...ndeed in this case it seems we are creating 2 virtual class for xts, one
in package environement quantmod and one in package environment myPackage.
Each is extended by different unionClass.
1) is it a problem (appart from this annoying warning?)
2) Should I instead use
if (is.null(.Call(methods:::C_R_getClassFromCache, "xts",
methods:::.classTable))) setOldClass("xts")
So that I create the virtual class only of it has not been created by
someone else in another package (and by the way in this case quantmod
should do the same to avoid issues when packages are loaded in a different
order)
3)...
2016 Jul 11
0
3 minor issues with getClass 'resolve.msg' arg
...the warning message was giving the name of
> the other package. I was in a session with 50+ packages attached or
> loaded via a namespace when I saw the warning. Took me a while to
> identify the other package, which I finally managed to do with:
> names(.Call(methods:::C_R_getClassFromCache, "Annotated",
> methods:::.classTable))
> 3rd issue
> ---------
> Calling getClass() with 'resolve.msg=FALSE' only removes one of the 2
> warnings:
>> tmp <- getClass("Annotated", resolve.msg=FALSE)
> Found more...