{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1120","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1120/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1120/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1120/events","html_url":"https://github.com/hadley/dplyr/issues/1120","id":73027599,"number":1120,"title":"dplyr do() crashes if it returns a complex value","user":{"login":"jakeyeung","id":3778225,"avatar_url":"https://avatars.githubusercontent.com/u/3778225?v=3","gravatar_id":"","url":"https://api.github.com/users/jakeyeung","html_url":"https://github.com/jakeyeung","followers_url":"https://api.github.com/users/jakeyeung/followers","following_url":"https://api.github.com/users/jakeyeung/following{/other_user}","gists_url":"https://api.github.com/users/jakeyeung/gists{/gist_id}","starred_url":"https://api.github.com/users/jakeyeung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakeyeung/subscriptions","organizations_url":"https://api.github.com/users/jakeyeung/orgs","repos_url":"https://api.github.com/users/jakeyeung/repos","events_url":"https://api.github.com/users/jakeyeung/events{/privacy}","received_events_url":"https://api.github.com/users/jakeyeung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-04T14:03:53Z","updated_at":"2015-05-19T15:26:55Z","closed_at":null,"body":"I want to use do() to transform data into complex values, but it is consistently crashing when I try to do so. \r\n\r\nExample:\r\n```\r\nlibrary(dplyr)\r\n\r\nComplexFunction <- function(dat){\r\n  x.trans <- exp(1i)\r\n  return(data.frame(x.trans = x.trans))\r\n}\r\n\r\ntest.df <- data.frame(x = seq(20), labs = rep(c(\"a\", \"b\"), 10))\r\n\r\ntest.crashes <- test.df %>%\r\n  group_by(labs) %>%\r\n  do(ComplexFunction(.))\r\n```\r\n\r\nRunning this causes RStudio to crash. It seems to crash when it tries to return a complex value.\r\n\r\nAny suggestions on how to handle this?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/103550415","html_url":"https://github.com/hadley/dplyr/issues/1120#issuecomment-103550415","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/1120","id":103550415,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T15:26:55Z","updated_at":"2015-05-19T15:26:55Z","body":"This works for me. Can you please try the dev version?"}}