search for: makegeneric

Displaying 7 results from an estimated 7 matches for "makegeneric".

2008 Feb 24
2
Generic Functions
...-") #Returns TRUE #I would like to define a specific function for class PROBECLASS with other arguments than for the generic function "setType" of fPortfolio. setGeneric("setType<-", function(object, value) standardGeneric("setType<-")) #Returns Fehler in makeGeneric(name, fdef, fdeflt, group = group, valueClass = valueClass, : the formal arguments of the generic function for "setType<-" (object, value) differ from those of the non-generic to be used as the default (spec, value) setReplaceMethod("setType", "PROBECLASS", fun...
2008 Feb 24
2
Generic Functions
...-") #Returns TRUE #I would like to define a specific function for class PROBECLASS with other arguments than for the generic function "setType" of fPortfolio. setGeneric("setType<-", function(object, value) standardGeneric("setType<-")) #Returns Fehler in makeGeneric(name, fdef, fdeflt, group = group, valueClass = valueClass, : the formal arguments of the generic function for "setType<-" (object, value) differ from those of the non-generic to be used as the default (spec, value) setReplaceMethod("setType", "PROBECLASS", fun...
2008 Dec 22
2
... (dotMethods) and cbind/rbind: how to give the signature?
...don't get the signature correct. I tried setGeneric ("cbind", signature = signature (...="...", deparse.level = "integer")) and setGeneric ("cbind", signature = signature ("...", deparse.level = "integer")) both give: Fehler in makeGeneric(name, fdef, fdeflt, group = group, valueClass = valueClass, : Nicht-Argumente in der Signatur: integer What is my mistake? Thanks a lot for your help! Claudia > version _ platform i486-pc-linux-gnu arch i486...
2008 Aug 21
1
rc note, etc
...code for possible problems ... NOTE browseAll: no visible binding for global variable ?.BrowserStack? ..dataPartReplace2: no visible binding for global variable ?THISCLASS? ...First.lib: no visible binding for global variable ?.possibleExtends? ...First.lib: no visible binding for global variable ?.makeGeneric? ...First.lib: no visible binding for global variable ?.newClassRepresentation? ...First.lib: no visible binding for global variable ?..mergeClassDefSlots? ..makeBasicFuns: no visible global function definition for ?.addBasicGeneric? ..makeBasicFuns: no visible binding for global variable...
2010 Jan 21
1
Rgeneric.py assists in rearranging generic function definitions
I've attached a script I wrote that pulls all the setGeneric definitions out of a set of R files and puts them in a separate file, default allGenerics.R. I thought it might help others who find themselves in a similar situation. The "situation" was that I had to change the order in which files in my package were parsed; the scheme in which the generic definition is in the
2008 Apr 22
3
R 2.7.0 is released
...s() now work again. o package.skeleton() now also works for code_files with only metadata (e.g. S4 setClass) definitions; it handles S4 classes and methods, producing documentation and NAMESPACE exports if requested. o Some methods package utilities (implicitGeneric(), makeGeneric()) will be more robust in dealing with primitive functions (not a useful idea to call them with primitives, though) o Making a MethodsList from a function with no methods table will return an empty list, rather than cause an error (questionably a bug, but caus...
2008 Apr 22
3
R 2.7.0 is released
...s() now work again. o package.skeleton() now also works for code_files with only metadata (e.g. S4 setClass) definitions; it handles S4 classes and methods, producing documentation and NAMESPACE exports if requested. o Some methods package utilities (implicitGeneric(), makeGeneric()) will be more robust in dealing with primitive functions (not a useful idea to call them with primitives, though) o Making a MethodsList from a function with no methods table will return an empty list, rather than cause an error (questionably a bug, but caus...