You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying this again...I'm still having problems with it. #160 was closed because the error could not be reproduced.
library('magrittr')
x <- 1:200000
y <- rep(letters[1:5], length(x) / 5L)
for (i in 1:100) {
# x[y == 'a'] <- x[y == 'b']
x %<>% inset(y == 'a', x[y == 'b'])
cat(i, '')
}
If you can't reproduce this error, please try increasing the length of x. The larger I make it, the more likely it is to crash R, instead of giving an error first. The error I usually get is
Error in function_list[[k]](value) :
incompatible types (from builtin to integer) in subassignment type fix
If the commented-out code is substituted, this works without error or crash.
The text was updated successfully, but these errors were encountered:
I can reproduce this error, but I think the issue is specifically with the compound assignment pipe, not inset. At least substituting x <- inset(x, y == 'a', x[y == 'b']) works fine for me (and I would be surprised if it didn't since it is literally a direct alias if you look at the code).
Trying this again...I'm still having problems with it. #160 was closed because the error could not be reproduced.
If you can't reproduce this error, please try increasing the length of x. The larger I make it, the more likely it is to crash R, instead of giving an error first. The error I usually get is
If the commented-out code is substituted, this works without error or crash.
The text was updated successfully, but these errors were encountered: