search for: nonstandardgenericfunction

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

2011 Aug 03
1
NAMESPACE problems
...robdingnag.Rcheck/00install.out * installing *source* package ?Brobdingnag? ... ** R ** inst ** preparing package for lazy loading Creating a generic for ?max? in package ?Brobdingnag? (the supplied definition differs from and overrides the implicit generic in package ?base?: Classes: "nonstandardGenericFunction", "standardGeneric") Creating a generic for ?min? in package ?Brobdingnag? (the supplied definition differs from and overrides the implicit generic in package ?base?: Classes: "nonstandardGenericFunction", "standardGeneric") Creating a generic for ?range?...
2007 Jan 31
2
Problems with definitions of S4-generics
..."barfunc")}) #### Okay, let's start. #### Fist the correct part ## Do some tests to see if the generic is present, ## and have a look at some details isGeneric("foofunc") # [1] TRUE findFunction("foofunc") # [[1]] # <environment: R_GlobalEnv> foofunc # nonstandardGenericFunction for "foofunc" defined from package ".GlobalEnv" # # function (object) # { # standardGeneric("foofunc") # } # <environment: 0x293bbb8> # Methods may be defined for arguments: object getGeneric("foofunc") # same result as above #### Now what I s...
2006 Sep 12
1
package.skeleton() in R-2.4.1
...gnature = "x", default = <S4 object of class structure("MethodsList", package = "methods")>, skeleton = quote(function (x) stop("invalid call in method dispatch to 'getX' (no default method)", domain = NA)(x)), class = structure ("nonstandardGenericFunction", package = "methods")) [subject to line breaking] but this file gives an error when sourced (below). I didn't get this problem with R-2.3.1. > > source("/Users/rksh/anRpackage/R/getX.R") Error in parse(file, n = -1, NULL, "?") : syntax error at 2...
2012 Feb 04
1
'deparse(substitute'))' then 'assign' in a S4 methods
...eneric("foo")}) setMethod("foo","ANY", function(x){ nameObject <- deparse(substitute(x)) print(nameObject) assign(nameObject,4,envir=parent.frame()) } ) ----------- But it does not work since the definition of foo is now: +++++++++ > foo nonstandardGenericFunction for "foo" defined from package ".GlobalEnv" function (x) { standardGeneric("foo") } <environment: 0x125b7c0c> ----------------- So how can I solve this problem? Is it possible to assign a value to a variable on the upper level using S4? Sincerely Christophe...
2005 Nov 14
1
Tidiest way of modifying S4 classes?
...rivedDefaultMethod", by class "MethodDefinition" Class "MethodWithNext", by class "MethodDefinition" Class "SealedMethodDefinition", by class "MethodDefinition" Class "standardGeneric", by class "genericFunction" Class "nonstandardGenericFunction", by class "genericFunction" Class "groupGenericFunction", by class "genericFunction" > If I want a new plot.pedigree function, do I make a slot, or what is the approach to take? Suggestions most welcome. Thanks -- Patrick Connolly HortResearch Mt Albert...
2020 Mar 27
0
Possibility of Less Verbose Stack Trace
...d day, Is there a setting the user can change to make R CMD check stack traces output less and make it easier to spot the line of code that's the problem? I use R Under development. Part of the trace I see looks like: --- R stacktrace --- where 1: .local(model, test, ...) where 2: (new("nonstandardGenericFunction", .Data = function (model, test, ...) { standardGeneric("elasticNetGLMpredictInterface") }, generic = "elasticNetGLMpredictInterface", package = "ClassifyR", group = list(), valueClass = character(0), signature = c("model", "test...
2023 Aug 06
1
Stacking matrix columns
Avi, I was not trying to provide the most economical solution. I was trying to anticipate that people (either the OP or others searching for how to stack columns of a matrix) might be motivated by calculations in multilinear algebra, in which case they might be interested in the rTensor package. On Sun, Aug 6, 2023 at 6:16?PM <avi.e.gross at gmail.com> wrote: > > Eric, > > I