-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfaults/inconsistent results with is.na #1286
Comments
Did you try against the dev version ? Envoyé de mon iPhone
|
I strongly believe this has been fixed in the dev version. Probably along fixing #1231 |
Tried this on dplyr 0.4.2, R 3.2.1, and OS X 10.10.3. Coworker got similar results on Ubuntu 14.04.2 LTS.
Setup:
df %>% dplyr::mutate(z = is.na(x))
works fine.df %>% dplyr::mutate(y = 1, z = is.na(x))
sometimes seems to work fine but sometimes either hangs R or crashes it with an error that sometimes is the usual segfault "address 0x10b63a000, cause 'memory not mapped'" and sometimes an error on malloc:It doesn't always happen - running this up to 10 times sequentially is usually enough to get it to happen on my machine.
df %>% dplyr::mutate(y = 1, z = ifelse(is.na(x), 0, 1))
suffers the same problems as above and also sometimes returns inconsistent/incorrect results, for example:or
Similar issues with SE calls
df %>% dplyr::mutate_(1, ~ is.na(x))
anddf %>% dplyr::mutate_(1, ~ ifelse(is.na(x), 0, 1))
.The text was updated successfully, but these errors were encountered: