search for: mys4class

Displaying 3 results from an estimated 3 matches for "mys4class".

2011 Jun 01
1
Overloading S4 methods
...thod overloading. I have defined a generic for graphics:plot, using setGeneric("plot", useAsDefault = plot) and with importFrom('graphics', 'plot') and exportMethods('plot') in the NAMESPACE file of pkg A. I then proceed to define a method for signature c('myS4class', 'missing'). This works as expected: selectMethod('plot', c('myS4class', 'missing')) returns the newly defined method, and the method gets called when invoked. Another pkg, B, wishes to overload this and redefines the method for the same signature. A method is...
2007 Jun 04
2
locked environment and inheritance
...ave a S3 package with namespace called "myS3Pkg". Inside my package I would like to create a S4 class which extends (adds 2 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 se...
2006 Feb 07
0
S4 documentation
...section{Methods}{ No methods defined with class "mspathDistributedCalculator" in the signature. } Yet there are such methods. Is this a not-working yet feature, or is something funny going on (maybe I have definitions in the library and in the global workspace...)? 2. Is the \code{\link{myS4class-class}} the proper way to cross-reference a class? \code{\link{myS4method-method}} the right way to refer to a method? I looked for something like \class or \method to correspond to \code, but didn't see anything. 3. This question goes beyond documentation. I have been approaching things l...