search for: implicitgeneric

Displaying 9 results from an estimated 9 matches for "implicitgeneric".

2010 Feb 28
1
dots for sample
Dear R-Developers, could 'sample' gain a ... argument? As a convenience function, I added a sample Method to my hyperSpec class. This function however has a flag indicating whether the results should be returned directly as a hyperSpec object or rather as indices that give a random sample. For the moment, I use SetGeneric to add the dots argument, but this of course gives a warning
2019 Sep 27
0
missing imports not detected by 'R CMD check' (?)
...so they are not in Matrix/NAMESPACE because Matrix may be older than namespaces, and even if not, originally, one did not import the the things from "Depends:" packages, where 'methods' had been for a long time in Matrix/DESCRIPTION ) : Both standardGeneric() and implicitGeneric() are also not in Matrix' NAMESPACE and are used in Matrix/R/*.R code, and that does not give any warnings from R CMD check. Unfortunately, I don't have time at the moment to delve into this to debug .. but I rather "post it" for now, so it is less easily forgotten. Martin --...
2010 Jun 13
1
S4 classes and S3 generic functions
...function is an S3 generic), an S4 generic function will be created corresponding to the existing function and the package in which it is found (more precisely, according to the implicit generic function either specified or inferred from the ordinary function; see 'implicitGeneric'). A message is printed after the initial call to 'setMethod'; this is not an error, just a reminder that you have created the generic. Creating the generic explicitly by the call 'setGeneric("f3")' avoids the message, but has the same effect....
2007 Jul 23
2
R2.6 bug in arithmetics of S4 classes inherited from 'array', or intended behavior?
Hi, I have an S4 class directly derived from 'array' as shown in the code below (EBImage package of Bioconductor 2.1, devel), it simply contains array adding a couple of slots: setClass ("Image", representation (colormode="integer", filename="character", compression="character", resolution="numeric", features="list" ),
2007 Oct 03
1
R-2.6.0 is released
...ethods that implement the concept of structures as described in the Blue Book--that element-by-element functions and operators leave structure intact unless they change the length. The informal behavior of R for vectors with attributes was inconsistent. o The implicitGeneric() function and relatives have been added to specify how a function in a package should look when methods are defined for it. This will be used to ensure that generic versions of functions in R core are consistent. See ?implicitGeneric. o Error messages generated by...
2007 Oct 03
1
R-2.6.0 is released
...ethods that implement the concept of structures as described in the Blue Book--that element-by-element functions and operators leave structure intact unless they change the length. The informal behavior of R for vectors with attributes was inconsistent. o The implicitGeneric() function and relatives have been added to specify how a function in a package should look when methods are defined for it. This will be used to ensure that generic versions of functions in R core are consistent. See ?implicitGeneric. o Error messages generated by...
2014 Mar 26
5
Conflicting definitions for function redefined as S4 generics
That might be worth thinking about generally, but it would still be nice to have the base generics pre-defined, so that people are not copy and pasting the definitions everywhere, hoping that they stay consistent. On Wed, Mar 26, 2014 at 6:13 AM, Gabriel Becker <gmbecker@ucdavis.edu>wrote: > Perhaps a patch to R such that generics don't clobber each-other's method > tables
2008 Apr 22
3
R 2.7.0 is released
...od() and dumpMethods() 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...
2008 Apr 22
3
R 2.7.0 is released
...od() and dumpMethods() 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...