Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-15 Thread Dénes Tóth
Hi Abby, On 11/15/19 10:19 PM, Abby Spurdle wrote: And indeed I think you are right on spot and this would mean that indeed the implicit class "matrix" should rather become c("matrix", "array"). I've made up my mind (and not been contradicted by my fellow R corers) to try go there for R 4.0.0

Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-15 Thread William Dunlap via R-devel
arrays and matrices have a numeric dims attribute, vectors don't. If statements lead to bad code. Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, Nov 15, 2019 at 1:19 PM Abby Spurdle wrote: > > > And indeed I think you are right on spot and this would mean > > > that indeed the implicit

Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-15 Thread Abby Spurdle
> > And indeed I think you are right on spot and this would mean > > that indeed the implicit class > > "matrix" should rather become c("matrix", "array"). > > I've made up my mind (and not been contradicted by my fellow R > corers) to try go there for R 4.0.0 next April. I'm not enthusiastic a

Re: [Rd] _R_CHECK_LENGTH_1_LOGIC2_ setting and Rstudio ..

2019-11-15 Thread Henrik Bengtsson
Yes, I ran into this too. I think they fixed it for RStudio 1.3 (https://github.com/rstudio/rstudio/pull/5457/files). My workaround is to enable these checks conditionally on not running R in the RStudio Console (it works in the RStudio Terminal). To test for the RStudio Console, you need to turn

[Rd] _R_CHECK_LENGTH_1_LOGIC2_ setting and Rstudio ..

2019-11-15 Thread Martin Maechler
> Martin Maechler > on Fri, 15 Nov 2019 17:31:15 +0100 writes: > as ((strongly recommended by me for package developers !)) > _R_CHECK_LENGTH_1_CONDITION_=true > _R_CHECK_LENGTH_1_LOGIC2_=verbose Apropos, for many months now, when very occasionally using Rstudio (notably

Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-15 Thread Martin Maechler
> Pages, Herve > on Thu, 14 Nov 2019 19:13:47 + writes: > On 11/14/19 05:47, Hadley Wickham wrote: >> On Sun, Nov 10, 2019 at 2:37 AM Martin Maechler >> wrote: >>> Gabriel Becker on Sat, 2 Nov 2019 12:37:08 -0700 writes: >>> >>>