search for: _r_check_length_1_logic2_

Displaying 20 results from an estimated 36 matches for "_r_check_length_1_logic2_".

2019 Nov 18
2
Suggestion: Make _R_CHECK_LENGTH_1_LOGIC2_=warn the default for R 3.6.2
Hi, I'm not sure where we are in getting CRAN packages getting their _R_CHECK_LENGTH_1_LOGIC2_=true bugs fixed (*), but maybe it'd help to make _R_CHECK_LENGTH_1_LOGIC2_=warn the new default in the upcoming R 3.6.2? Warnings of type: $ R --vanilla > Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "warn") > c(TRUE, FALSE) && TRUE [1] TRUE Warning message: In c(...
2019 Nov 18
2
Suggestion: Make _R_CHECK_LENGTH_1_LOGIC2_=warn the default for R 3.6.2
...Maechler <maechler at stat.math.ethz.ch> wrote: > > >>>>> Henrik Bengtsson > >>>>> on Sun, 17 Nov 2019 20:42:32 -0800 writes: > > > Hi, > > > I'm not sure where we are in getting CRAN packages getting their > > _R_CHECK_LENGTH_1_LOGIC2_=true bugs fixed (*), but maybe it'd help to > > make _R_CHECK_LENGTH_1_LOGIC2_=warn the new default in the upcoming R > > 3.6.2? > > Interesting, I had similar thoughts the last few days > ... but not for R 3.6.x --- I think it's out of the question to > do t...
2019 Nov 18
0
Suggestion: Make _R_CHECK_LENGTH_1_LOGIC2_=warn the default for R 3.6.2
>>>>> Henrik Bengtsson >>>>> on Sun, 17 Nov 2019 20:42:32 -0800 writes: > Hi, > I'm not sure where we are in getting CRAN packages getting their > _R_CHECK_LENGTH_1_LOGIC2_=true bugs fixed (*), but maybe it'd help to > make _R_CHECK_LENGTH_1_LOGIC2_=warn the new default in the upcoming R > 3.6.2? Interesting, I had similar thoughts the last few days ... but not for R 3.6.x --- I think it's out of the question to do that for a "minor" u...
2019 Nov 18
0
Suggestion: Make _R_CHECK_LENGTH_1_LOGIC2_=warn the default for R 3.6.2
...chler at stat.math.ethz.ch> wrote: >>>>>>> Henrik Bengtsson >>>>>>> on Sun, 17 Nov 2019 20:42:32 -0800 writes: >> > Hi, >> >> > I'm not sure where we are in getting CRAN packages getting their >> > _R_CHECK_LENGTH_1_LOGIC2_=true bugs fixed (*), but maybe it'd help to >> > make _R_CHECK_LENGTH_1_LOGIC2_=warn the new default in the upcoming R >> > 3.6.2? >> >> Interesting, I had similar thoughts the last few days >> ... but not for R 3.6.x --- I think it's out of the...
2019 Jun 24
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...00 writes: > 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") : > 'length(x) = 4 > 1' in coercion to 'logical(1)' > Error: unable to load R code in package ?oligo?...
2019 Jun 22
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
DISCLAIMER: I can not get this error with R --vanilla, so it only occurs when some other package is also loaded. I don't have time to find to narrow that down for a reproducible example, but I believe the following error in R 3.6.0: > Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "true") > library(oligo) Error in omittedSig && (signature[omittedSig] != "missing") : 'length(x) = 4 > 1' in coercion to 'logical(1)' Error: unable to load R code in package 'oligo' is because of a '_R_CHECK_LENGTH_1_LOGIC2_=...
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") : 'length(x) = 4 > 1' in coercion to 'logical(1)' Error: unable to load R code in package ?oligo? /Henrik On Sun, Jun 23, 2019 at 1:54...
2019 Jun 23
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...te: > > DISCLAIMER: I can not get this error with R --vanilla, so it only > occurs when some other package is also loaded. I don't have time to > find to narrow that down for a reproducible example, but I believe the > following error in R 3.6.0: > >> Sys.setenv("_R_CHECK_LENGTH_1_LOGIC2_" = "true") >> library(oligo) > Error in omittedSig && (signature[omittedSig] != "missing") : > 'length(x) = 4 > 1' in coercion to 'logical(1)' > Error: unable to load R code in package 'oligo' > > is because of a ...
2019 Jun 25
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...gt;>> 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") : >>> 'length(x) = 4 > 1' in coercion to 'logical(1)' >>> Error: unable to load R code in packa...
2019 Jun 25
3
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...t; > 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") : > > 'length(x) = 4 > 1' in coercion to 'logical(1)' > > Error: unable to load R code in p...
2019 Jun 27
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...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") : >>>>> 'length(x) = 4 > 1' in coercion to 'logical(1)' >>>>&g...
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...yself, 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") : >>>> 'length(x) = 4 > 1' in coercion to 'logical(1)' >>>> Error: unable to load...
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 =
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
>>>>> peter dalgaard >>>>> on Fri, 28 Jun 2019 16:20:03 +0200 writes: > > 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: > >> > >>
2019 Jun 27
2
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...;>>>> 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") : > >>>>> 'length(x) = 4 > 1' in coercion to 'logical(1)' >...
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[omittedSig], c("ANY", "missing"))) After r76756: ? ? if(any(iiN
2019 Jun 29
0
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error
...ngFSet", 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("oligoFn", signature(object = "tilingFSet", value="array"), ## Method _ 1 _ > function(object, value) { list(object=object, value=value) }) > setMethod("oligoFn&quot...
2020 Jan 13
2
as-cran issue ==> set _R_CHECK_LENGTH_1_* settings!
>>>>> Ben Bolker >>>>> on Mon, 13 Jan 2020 11:49:09 -0500 writes: > From R NEWS (changes in 3.6.0) > Experimentally, setting environment variable _R_CHECK_LENGTH_1_LOGIC2_ > will lead to warnings (or errors if the variable is set to a ?true? > value) when && or || encounter and use arguments of length more than one. Indeed, thank you, Ben. Note (Dirk) this is not just something "by Henrik (..) as he tried to convince us all to use it...
2019 Jul 01
1
methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true
...te: Sat, 29 Jun 2019 22:44:49 +0200 From: Martin Maechler <maechler at stat.math.ethz.ch> To: R-devel <r-devel at r-project.org>, Henrik Bengtsson <henrik.bengtsson at gmail.com> Cc: Martin Maechler <maechler at stat.math.ethz.ch> Subject: Re: [Rd] methods package: A _R_CHECK_LENGTH_1_LOGIC2_=true error Message-ID: <23831.52673.201433.320952 at stat.math.ethz.ch> Content-Type: text/plain; charset="utf-8" >>>>> Martin Maechler >>>>> on Sat, 29 Jun 2019 12:05:49 +0200 writes: >>>>> Martin Maechler >>>>&...
2019 Aug 19
2
Check length of logical vector also for operands of || and &&?
Hi everyone The following behavior (in R 3.6.1 and R-devel r77040) caught me by surprise today: truthy <- c(TRUE, FALSE) falsy <- c(FALSE, TRUE, FALSE) if (truthy) "check" #> Warning in if (truthy) "check": the condition has length > 1 and only the #> first element will be used #> [1] "check" if (falsy) "check" #> Warning in if