search for: classmetanam

Displaying 6 results from an estimated 6 matches for "classmetanam".

Did you mean: classmetaname
2008 Feb 17
1
NAMESPACEs and S4 classes
I'd like to have two packages with S4 classes with the same name but different implementation. To that end I create a package tmpA with setClass("A", representation=representation( x="numeric"), sealed=TRUE) setClass("B", representation=representation( x="numeric")) B <- function(...)
2005 Aug 11
1
Registering S3 class from external package
...uot;, "data.frame"), where = asNamespace("mypkg")) }) ----------------- > require(mypkg) Loading required package: mypkg ... > require(somepkg) Loading required package: somepkg * Register 'oldstyle' as S3 class Error in assign(classMetaName(Class), def, where) : cannot add bindings to a locked environment > R.version.string [1] "R version 2.1.1, 2005-06-20" ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)
2004 Jul 22
2
Files and classes in a package?
...> library(pkg) Error in methodsPackageMetaName("C", name) : The name of the object (e.g,. a class or generic function) to find in the meta-data must be a single string (got an object of class "NULL") > traceback() 12: methodsPackageMetaName("C", name) 11: classMetaName(Class) 10: getClassDef(Class, where) 9: getClass(cl, TRUE) 8: .validDataPartClass(clDef, name) 7: reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, where) 6: makeClassRepresentation(Class, properties, superClasses, prototype, package, validity, access, version, se...
2007 Jun 04
2
locked environment and inheritance
...slots) another S4 class from some other package. The class should be created in "myPkg" environment (and not global environment). Using: setClass("myS4class", representation("otherS4class", mydata = "numeric"), where = topenv()) I get: Error in assign(classMetaName(Class), def, where) : cannot add bindings to a locked environment I understand the fact that after "myPkg" is loaded, its namespace is sealed, but I was hoping to find a way around it. I would appreciate any comment on this. thank you. _______________________...
2004 Aug 25
1
Pixmap problem
Hi, I'm having trouble writing .pnm images which I think is due to a problem with my colour space. The pixmap object seems to be looking for 72 of 8 colours (one per cell?) which doesn't seem healthy... > library(pixmap) > x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=rainbow(8)) > x Pixmap image Type : pixmapIndexed Size : 6x12 Resolution : 1x1
2014 Nov 25
0
problem with setGroupGeneric from package methods
...re = as.environment(where), doCheck = TRUE) { ## a collection of actions performed on attach or detach ## to update class and method information. pkg <- getPackageName(where) classes <- getClasses(where) for(cl in classes) { cldef <- (if(attach) get(classMetaName(cl), where) # NOT getClassDef, it will use cache else getClassDef(cl, searchWhere)) if(is(cldef, "classRepresentation")) { if(attach) { .cacheClass(cl, cldef, is(cldef, "ClassUnionRepresentation"), where) }...