Displaying 4 results from an estimated 4 matches for "vectorassign".
2019 Feb 27
2
Intermittent crashes with inset `[<-` command
...t;- `[<-`(x, y == 'a', x[y == 'b'])
+ 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...
2019 Feb 27
0
Intermittent crashes with inset `[<-` command
...9;, x[y == 'b'])
> + 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...
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
2004 Nov 01
0
(PR#7326)(inappropriate) manipulation of expression objects
...r is what happens with lists, and expressions are basically
> just list of call objects (or names or constants). To wit:
>
> > x <- list(1,2,3)
> > x[2] <- 1
> > x
> [[1]]
> [1] 1
>
> [[2]]
> [1] 1
>
> [[3]]
> [1] 3
That's not the issue: VectorAssign has identical code for the vector list
and expression cases. The issue is in SubassignTypeFix which says
case 2010: /* expression <- logical */
/* Note : No coercion is needed here. */
/* We just insert the RHS into the LHS. */
/* FIXME: is this true or should it be just like the &q...