Displaying 5 results from an estimated 5 matches for "do_subassign".
2019 Feb 27
2
Intermittent crashes with inset `[<-` command
...cat(i, '')
+ }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
29 30 31 32 33 34 35 36 37 ==4711== Invalid read of size 1
==4711== at 0x501A40F: Rf_xlength (Rinlinedfuns.h:542)
==4711== by 0x501A40F: VectorAssign (subassign.c:658)
==4711== by 0x501CDFE: do_subassign_dflt (subassign.c:1641)
==4711== by 0x5020100: do_subassign (subassign.c:1571)
==4711== by 0x4F66398: bcEval (eval.c:6795)
==4711== by 0x4F7D86D: R_compileAndExecute (eval.c:1407)
==4711== by 0x4F7DA70: do_for (eval.c:2185)
==4711== by 0x4F7741C: Rf_eval (eval.c:691)
==4711== by 0...
2019 Feb 27
0
Intermittent crashes with inset `[<-` command
...> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
> 29 30 31 32 33 34 35 36 37 ==4711== Invalid read of size 1
> ==4711== at 0x501A40F: Rf_xlength (Rinlinedfuns.h:542)
> ==4711== by 0x501A40F: VectorAssign (subassign.c:658)
> ==4711== by 0x501CDFE: do_subassign_dflt (subassign.c:1641)
> ==4711== by 0x5020100: do_subassign (subassign.c:1571)
> ==4711== by 0x4F66398: bcEval (eval.c:6795)
> ==4711== by 0x4F7D86D: R_compileAndExecute (eval.c:1407)
> ==4711== by 0x4F7DA70: do_for (eval.c:2185)
> ==4711== by 0x4F7741C: Rf_eval (eva...
2019 Feb 26
8
Intermittent crashes with inset `[<-` command
The following code crashes after about 300 iterations on my?x86_64-w64-mingw32?machine on R 3.5.2 --vanilla.??
Others have duplicated this (see?https://github.com/tidyverse/magrittr/issues/190?if necessary), but I don't know how machine/OS-dependent it may be.??
If it doesn't crash for you, please try increasing the length of the x vector.
Substituting the commented-out line for the one
1999 Mar 02
0
[R] zero-offset matrices (PR#132)
...ix...
To tickle the bug:
"[<-.zoffset" <- function(x, i, j, value)
{
if(!missing(i) && is.numeric(i)) i <- i+1
if(!missing(j) && is.numeric(j)) j <- j+1
NextMethod("[<-")
}
m<-matrix(1:4,2,2)
m[0,]<-4:5
Probably, set a breakpoint in do_subassigne and step through it.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-....
2002 Aug 13
1
Q: replacing elements in an array
Dear all,
I have a question about the way the replacement of elements in an array
works in R (having a slight idea of the answer), and a question about
the way to achieve my goals.
If I have a 3 ways-array called 'a', the command
a[1, , ] <- rnorm(10) # assumes the size matches
will result in having the whole object 'a' copied (since arrays are
just 'vectors with