Skip to content
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

nesting all columns in a data frame causes segfault #186

Closed
dalejbarr opened this issue May 9, 2016 · 1 comment
Closed

nesting all columns in a data frame causes segfault #186

dalejbarr opened this issue May 9, 2016 · 1 comment

Comments

@dalejbarr
Copy link

dalejbarr commented May 9, 2016

Nesting all columns in a data frame crashes R, (according to traceback this might be a problem with dplyr rather than tidyr)

library("tidyr")

x <- data.frame(A = 1:2, B = 1:2)
nest(x, A) # works fine
nest(x, A, B) # segfault
  *** caught segfault ***
 address (nil), cause 'memory not mapped'

 Traceback:
  1: .Call("dplyr_distinct_impl", PACKAGE = "dplyr", df, vars)
  2: distinct_impl(dist$data, dist$vars)
  3: distinct_.data.frame(dplyr::select_(data, .dots = group_cols))
  4: dplyr::distinct_(dplyr::select_(data, .dots = group_cols))
  5: nest_impl(data, key_col, group_cols, nest_cols)
  6: nest_.data.frame(data, key_col, nest_cols)
  7: nest_(data, key_col, nest_cols)
  8: nest(x, A, B)
@hadley
Copy link
Member

hadley commented May 16, 2016

For future reference, please don't include sessionInfo() unless explicitly asked

@hadley hadley closed this as completed in 1a5d521 May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants