Displaying 4 results from an estimated 4 matches for "oligofn".
Did you mean:
oligo
2019 Jun 29
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
.../reg-tests-1d.R ) :
-----------------------------------------------------------------------------
## conformMethod() "&& logic" bug, by Henrik Bengtsson on R-devel list, 2019-06-22
setClass("tilingFSet", slots = c(x = "numeric"))
if(!is.null(getGeneric("oligoFn"))) removeGeneric("oligoFn")
setGeneric("oligoFn",
function(object, subset, target, value) { standardGeneric("oligoFn") })
Sys.unsetenv("_R_CHECK_LENGTH_1_LOGIC2_") ## << added here, to compare with R 3.6.0, 3.5.3, ..
setMethod("oli...
2019 Jul 01
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true
...that Martin's example, which I repeat below, suggests a crossover between several "signatures" involved here - the signature of the generic, the signature of the method (the argument for setMethod()), and the signature of the function object defining the method.
>> r2 <- oligoFn(object=diag(2), target=array(42))
> Error in .local(object, target) :
> argument "target" is missing, with no default
>> getMethod("oligoFn", signature(object="matrix", subset="missing", target="array"))
> Met...
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...-----------------------------------------------------------------------
> ## conformMethod() "&& logic" bug, by Henrik Bengtsson on R-devel list, 2019-06-22
> setClass("tilingFSet", slots = c(x = "numeric"))
> if(!is.null(getGeneric("oligoFn"))) removeGeneric("oligoFn")
> setGeneric("oligoFn",
> function(object, subset, target, value) { standardGeneric("oligoFn") })
> Sys.unsetenv("_R_CHECK_LENGTH_1_LOGIC2_") ## << added here, to compare with R 3.6.0, 3.5.3, .....
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