{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1300","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1300/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1300/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1300/events","html_url":"https://github.com/hadley/dplyr/issues/1300","id":98923794,"number":1300,"title":"RSession crash when calling function with arguments within rowwise mutate call within rowwise mutate call","user":{"login":"jan-glx","id":1266815,"avatar_url":"https://avatars.githubusercontent.com/u/1266815?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-glx","html_url":"https://github.com/jan-glx","followers_url":"https://api.github.com/users/jan-glx/followers","following_url":"https://api.github.com/users/jan-glx/following{/other_user}","gists_url":"https://api.github.com/users/jan-glx/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-glx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-glx/subscriptions","organizations_url":"https://api.github.com/users/jan-glx/orgs","repos_url":"https://api.github.com/users/jan-glx/repos","events_url":"https://api.github.com/users/jan-glx/events{/privacy}","received_events_url":"https://api.github.com/users/jan-glx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T09:07:57Z","updated_at":"2015-08-15T19:38:11Z","closed_at":"2015-08-12T09:31:58Z","body":"Hi!\r\nI encountered crashes of my R session in this specific misuse of dplyr. I was unable to break it down any further:\r\n\r\nMWE:\r\n````\r\nlibrary(dplyr)\r\n\r\na <- data.frame(x= 1)\r\nb <- data.frame(y = character(), # runs fine with integer()\r\n                stringsAsFactors = F)\r\n\r\ng <- function(y){1} # 1 or y\r\nf <- function() { b %>% rowwise() %>% mutate(z = g(y))}\r\ntry(f())\r\nprint(\"f ran fine (with eror)\")\r\ntry(a %>% mutate(b = f()))\r\nprint(\"f ran fine (with eror) within mutate\")\r\ntry(a %>% rowwise() %>% mutate(b = f()))\r\nprint(\"f ran fine (with eror) within rowise mutate\")\r\n````\r\n\r\nOutput:\r\n````\r\nError in mutate_impl(.data, dots) : \r\n  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'pairlist'\r\nf ran fine (with eror)\r\nError : Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'pairlist'\r\nf ran fine (with eror) within mutate\r\n<RSession crash>\r\n````\r\n\r\nSession info:\r\n````\r\nR version 3.2.1 (2015-06-18)\r\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\r\nRunning under: Windows 8 x64 (build 9200)\r\nother attached packages:\r\n[1] dplyr_0.4.2\r\n````\r\n\r\nall the best and much fun to the one taking it on,\r\nJan"},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/131434527","html_url":"https://github.com/hadley/dplyr/issues/1300#issuecomment-131434527","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/1300","id":131434527,"user":{"login":"jan-glx","id":1266815,"avatar_url":"https://avatars.githubusercontent.com/u/1266815?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-glx","html_url":"https://github.com/jan-glx","followers_url":"https://api.github.com/users/jan-glx/followers","following_url":"https://api.github.com/users/jan-glx/following{/other_user}","gists_url":"https://api.github.com/users/jan-glx/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-glx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-glx/subscriptions","organizations_url":"https://api.github.com/users/jan-glx/orgs","repos_url":"https://api.github.com/users/jan-glx/repos","events_url":"https://api.github.com/users/jan-glx/events{/privacy}","received_events_url":"https://api.github.com/users/jan-glx/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T19:38:11Z","updated_at":"2015-08-15T19:38:11Z","body":":thumbsup: Thanks!"}}