search for: conformmethod

Displaying 20 results from an estimated 30 matches for "conformmethod".

2019 Jun 28
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
> On 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> Henrik Bengtsson >>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: > >> Using: >> >> untrace(methods::conformMethod) >> at <- c(12,4,3,2) >> str(body(methods::conformMethod)[[at]]) >> ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") >> cc <- 0L >> trace(methods::conformMethod, tracer = quote({ >> cc <<- cc + 1L >...
2019 Jun 29
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...t stat.math.ethz.ch> wrote: >> > >> >>>>>> Henrik Bengtsson >> >>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: >> > >> >> Using: >> >> >> >> untrace(methods::conformMethod) >> >> at <- c(12,4,3,2) >> >> str(body(methods::conformMethod)[[at]]) >> >> ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") >> >> cc <- 0L >> >> trace(methods::co...
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
Using: untrace(methods::conformMethod) at <- c(12,4,3,2) str(body(methods::conformMethod)[[at]]) ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") cc <- 0L trace(methods::conformMethod, tracer = quote({ cc <<- cc + 1L print(cc) if (cc == 31) { ## manually identified...
2019 Jul 01
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true
...wrote: >>> > >>> >>>>>> Henrik Bengtsson >>> >>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: >>> > >>> >> Using: >>> >> >>> >> untrace(methods::conformMethod) >>> >> at <- c(12,4,3,2) >>> >> str(body(methods::conformMethod)[[at]]) >>> >> ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") >>> >> cc <- 0L >>> >&g...
2019 Jul 04
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
In 'conformMethod', there is another instance of omittedSig & <something about signature[omittedSig]> . It just affects error message. Original: ? ? if(any(is.na(match(signature[omittedSig], c("ANY", "missing"))))) { ? ? ? ? bad <- omittedSig & is.na(match(signature[omittedS...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...e: >>> > >>> >>>>>> Henrik Bengtsson >>> >>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: >>> > >>> >> Using: >>> >> >>> >> untrace(methods::conformMethod) >>> >> at <- c(12,4,3,2) >>> >> str(body(methods::conformMethod)[[at]]) >>> >> ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") >>> >> cc <- 0L >>> >&g...
2019 Jun 28
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
>>>>> Henrik Bengtsson >>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: > Using: > > untrace(methods::conformMethod) > at <- c(12,4,3,2) > str(body(methods::conformMethod)[[at]]) > ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") > cc <- 0L > trace(methods::conformMethod, tracer = quote({ > cc <<- cc + 1L > print(cc) > if...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...n 28 Jun 2019, at 16:03 , Martin Maechler <maechler at stat.math.ethz.ch> wrote: > > > >>>>>> Henrik Bengtsson > >>>>>> on Thu, 27 Jun 2019 16:00:39 -0700 writes: > > > >> Using: > >> > >> untrace(methods::conformMethod) > >> at <- c(12,4,3,2) > >> str(body(methods::conformMethod)[[at]]) > >> ## language omittedSig <- omittedSig && (signature[omittedSig] != "missing") > >> cc <- 0L > >> trace(methods::conformMethod, tracer = quote({ > >&...
2006 Mar 14
1
setMethod confusion
...method for the existing function "table" or "as.data.frame.table" for my class "tfSites". Taking out all the useful code and just returning the input class I get the error setMethod("table", "tfSites", function(.Object) .Object) Error in conformMethod(signature, mnames, fnames, f) : In method for function "table": formal arguments omitted in the method definition cannot be in the signature (exclude = "tfSites") setMethod("as.data.frame.table", "tfSites", function(.Object) .Object ) Error in c...
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...ot; in my view >>> >>> Worse, I cannot reproduce : >>> >>>> Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "true") >>>> Sys.getenv("_R_CHECK_LENGTH_1_LOGIC2_") >>> [1] "true" >>>> debugonce(conformMethod) >>>> loadNamespace("oligo") >>> <environment: namespace:oligo> >>> Warning messages: >>> 1: multiple methods tables found for ?rowSums? >>> 2: multiple methods tables found for ?colSums? >>> 3: multiple methods tabl...
2006 Mar 15
1
setMethod confusion -best reference for S4 programming
..." for my class "tfSites". > Stephen> Taking out all the useful code and just returning > Stephen> the input class I get the error > > >> setMethod("table", "tfSites", function(.Object) .Object) > > Stephen> Error in conformMethod(signature, mnames, fnames, > Stephen> f) : In method for function "table": formal > Stephen> arguments omitted in the method definition cannot > Stephen> be in the signature (exclude = "tfSites") > > > >> setMethod("as.data.f...
2011 Feb 05
1
Seeking help to define method for '+'
...uot;)) new1 <- new("Me", x1=2, x2="comment1") new2 <- new("Me", x1=3, x2="comment1") setMethod("+", "Me", definition=function(x,y) cat(x@x1 + y@x1, "\n")) However while am trying to set method, it fails: Error in conformMethod(signature, mnames, fnames, f, fdef, definition) : in method for '+' with signature 'e1="Me"': formal arguments (e1 = "Me", e2 = "Me") omitted in the method definition cannot be in the signature I am just started learning s4 class system therefor...
2006 Sep 04
1
setMethod("Summary")
...d("Summary", signature("brob"), function(...){ switch(.Generic, max = .Brob.max(...), stop(paste(.Generic, "not implemented yet ")) ) } ) but this gives an error from conformMethod(). [I've left the arguments to signature() unnamed because ? GenericFunctions says A signature is a named or unnamed vector of character strings. If named, the names must be formal argument names for the generic function. If 'signature' is...
2010 Oct 26
1
S4 methods for rbind()
...d("rbind", signature="mdm", function(x, ...) { if(nargs()<3) .mdm_rbind_pair(x,...) else .mdm_rbind_pair(x, Recall(...)) }) But LE223:~/packages% sudo R CMD INSTALL ./multivator [snip] Creating a new generic function for "tail" in "multivator" Error in conformMethod(signature, mnames, fnames, f, fdef, definition) : in method for ?rbind? with signature ?deparse.level="mdm"?: formal arguments (... = "mdm", deparse.level = "mdm") omitted in the method definition cannot be in the signature Error : unable to load R code in package '...
2007 Apr 26
1
Problem with R-2.5.0 patched and Matrix package
Hi, Using latest R 2.5.0 Patched, I'm unable to install the Matrix package from cran.fhcrc.org. I get: Creating a new generic function for "isSymmetric" in "Matrix" Creating a new generic function for "unname" in "Matrix" Error in conformMethod(signature, mnames, fnames, f) : In method for function "!": formal arguments omitted in the method definition cannot be in the signature (x = "Matrix") Error: unable to load R code in package 'Matrix' Execution halted ERROR: lazy loading failed for package 'M...
2004 Sep 22
1
S4 methods and polymorophism
...t;Collection" classes. > getMethod("length") .Primitive("length") *** QUESTION: I dont undertand the following error message when trying to define this method: > setMethod("length","Collection",function(object){ length(object@ID)}) Error in conformMethod(signature, mnames, fnames, f) : In method for function "length": Formal arguments omitted in the method definition cannot be in the signature (x = "Collection") How is it possible to extend length to my own class? Be HappyR and HappyR again, Eric Eric Lecoutre UC...
2019 Jun 25
3
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...is not quite a "vanilla repr.ex." in my view > > Worse, I cannot reproduce : > > > Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "true") > > Sys.getenv("_R_CHECK_LENGTH_1_LOGIC2_") > [1] "true" > > debugonce(conformMethod) > > loadNamespace("oligo") > <environment: namespace:oligo> > Warning messages: > 1: multiple methods tables found for ?rowSums? > 2: multiple methods tables found for ?colSums? > 3: multiple methods tables found for ?rowMeans? >...
2019 Jun 23
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
Thank you. To correct myself, I can indeed reproduce this with R --vanilla too. A reproducible example is: $ R --vanilla R version 3.6.0 Patched (2019-05-31 r76629) -- "Planting of a Tree" ... > Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "true") > loadNamespace("oligo") Error in omittedSig && (signature[omittedSig] != "missing") :
2004 May 12
1
Problem installing SparseM on Debian stable
....o chol.o cholesky.o csr.o extract.o iohb.o readwrite.o sparskit.o subscr.o -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lreadline -ldl -lncurses -lg2c-pic -lm -L/usr/lib/R/bin -lR ** R ** data ** demo ** inst ** save image Loading required package: methods [1] TRUE [1] "matrix.csr" Error in conformMethod(signature, mnames, fnames) : Formal arguments omitted in the method definition cannot be in the signature: object Execution halted ERROR: execution of package source for 'SparseM' failed The same happens if I try to install it from within R by calling install.packages("Spars...
2019 Jun 24
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...n installed before, too .. which is not quite a "vanilla repr.ex." in my view Worse, I cannot reproduce : > Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "true") > Sys.getenv("_R_CHECK_LENGTH_1_LOGIC2_") [1] "true" > debugonce(conformMethod) > loadNamespace("oligo") <environment: namespace:oligo> Warning messages: 1: multiple methods tables found for ?rowSums? 2: multiple methods tables found for ?colSums? 3: multiple methods tables found for ?rowMeans? 4: multiple methods tables found...