Re: [Rd] M[cbind()] <- assignment with Matrix object loses attributes

2020-08-22 Thread Abby Spurdle
> Hmm, really? In `R Under development (unstable) (2020-08-14 > r79020)`, doing the indexed assignment with a regular matrix (as opposed > to a Matrix) appears to preserve attributes. I was referring to *Matrix* objects. Sorry, if that wasn't clear. __

Re: [Rd] M[cbind()] <- assignment with Matrix object loses attributes

2020-08-22 Thread Ben Bolker
Thanks for taking a look! Hmm, really? In `R Under development (unstable) (2020-08-14 r79020)`, doing the indexed assignment with a regular matrix (as opposed to a Matrix) appears to preserve attributes. m1 <- matrix(1:9,3,3) attr(m1,"junk") <- 12 stopifnot(isTRUE(attr(m1,"junk")==12))

Re: [Rd] R 4.0.2 64-bit Windows hangs

2020-08-22 Thread Jeroen Ooms
On Sat, Aug 22, 2020 at 9:10 PM Tomas Kalibera wrote: > > On 8/22/20 8:26 PM, Tomas Kalibera wrote: > > On 8/22/20 7:58 PM, Jeroen Ooms wrote: > >> On Sat, Aug 22, 2020 at 8:39 AM Tomas Kalibera > >> wrote: > >>> On 8/21/20 11:45 PM, m19tdn+9alxwj7d2bmk--- via R-devel wrote: > Ah yes, this i

Re: [Rd] R 4.0.2 64-bit Windows hangs

2020-08-22 Thread Tomas Kalibera
On 8/22/20 8:26 PM, Tomas Kalibera wrote: On 8/22/20 7:58 PM, Jeroen Ooms wrote: On Sat, Aug 22, 2020 at 8:39 AM Tomas Kalibera wrote: On 8/21/20 11:45 PM, m19tdn+9alxwj7d2bmk--- via R-devel wrote: Ah yes, this is related. I reported v2010 below, but it looks like I was updated to this Inside

Re: [Rd] R 4.0.2 64-bit Windows hangs

2020-08-22 Thread Tomas Kalibera
On 8/22/20 7:58 PM, Jeroen Ooms wrote: On Sat, Aug 22, 2020 at 8:39 AM Tomas Kalibera wrote: On 8/21/20 11:45 PM, m19tdn+9alxwj7d2bmk--- via R-devel wrote: Ah yes, this is related. I reported v2010 below, but it looks like I was updated to this Insider Build overnight without my knowledge, an

Re: [Rd] R 4.0.2 64-bit Windows hangs

2020-08-22 Thread Jeroen Ooms
On Sat, Aug 22, 2020 at 8:39 AM Tomas Kalibera wrote: > > On 8/21/20 11:45 PM, m19tdn+9alxwj7d2bmk--- via R-devel wrote: > > Ah yes, this is related. I reported v2010 below, but it looks like I was > > updated to this Insider Build overnight without my knowledge, and conflated > > it with the ne

Re: [Rd] M[cbind()] <- assignment with Matrix object loses attributes

2020-08-22 Thread Abby Spurdle
Hi Ben, I had some problems reproducing this. As far as I can tell *all* indexed assignments drop attributes. (Maybe we have different versions). I'm not an expert on S4, but I'm unenthusiastic about mixing slot (S4) semantics with attribute (S3) semantics. And str() excludes attributes, but attr