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

do() with grouped data crashes R session when returned data frame contains a list #514

Closed
wch opened this issue Jul 28, 2014 · 1 comment

Comments

@wch
Copy link
Member

wch commented Jul 28, 2014

Example:

# Returns a data frame where one column is a list containing a numeric vector
foo <- function(x) {
  res <- data.frame(a=1, b=2)
  res$c <- list(c(5,6,7))
  res
}
foo()

# Not grouped: OK
data.frame(g=1) %>% do(foo(.))

# Grouped: crashes R
data.frame(g=1) %>% group_by(g) %>% do(foo(.))

This is needed for compute_boxplot in ggvis.

@hadley
Copy link
Member

hadley commented Jul 28, 2014

Duplicate of #463

@hadley hadley closed this as completed Jul 28, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants