{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/haven/issues/171","repository_url":"https://api.github.com/repos/hadley/haven","labels_url":"https://api.github.com/repos/hadley/haven/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/hadley/haven/issues/171/comments","events_url":"https://api.github.com/repos/hadley/haven/issues/171/events","html_url":"https://github.com/hadley/haven/issues/171","id":158091454,"number":171,"title":"haven::write_sav can crash","user":{"login":"rubenarslan","id":831109,"avatar_url":"https://avatars.githubusercontent.com/u/831109?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenarslan","html_url":"https://github.com/rubenarslan","followers_url":"https://api.github.com/users/rubenarslan/followers","following_url":"https://api.github.com/users/rubenarslan/following{/other_user}","gists_url":"https://api.github.com/users/rubenarslan/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenarslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenarslan/subscriptions","organizations_url":"https://api.github.com/users/rubenarslan/orgs","repos_url":"https://api.github.com/users/rubenarslan/repos","events_url":"https://api.github.com/users/rubenarslan/events{/privacy}","received_events_url":"https://api.github.com/users/rubenarslan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-02T09:00:33Z","updated_at":"2016-06-02T23:08:21Z","closed_at":"2016-06-02T15:38:55Z","body":"Are you already interested in crash reports? I'm not sure, I just eagerly installed from the master branch to test the date and label writing to .sav. \r\nIf not, ignore this and sorry 😅 \r\n\r\nWriting the following data results in a crash on my platform 1 out of 3 times. If I use all the data and not just a tiny slice, it always crashes.\r\nI'm not sure how to report details about crashes. R quits with a fatal error and Rstudio reloads, I don't get a message. If I turn `debug` on the function Rstudio crashes too and I can see from the Mac OS X reporting tools that it's a segfault, but I'm not sure whether that's now related to haven or RStudio.\r\n\r\n```\r\nwidgets = structure(list(time_period = structure(NA_integer_, .Label = c(\"quaternary\", \r\n\t\"neogene\", \"paleogene\", \"cretaceous\", \"jurassic\", \"triassic\", \r\n\t\"permian\", \"carboniferous\", \"devonian\", \"silurian\", \"ordovician\", \r\n\t\"cambrian\"), class = \"factor\"), partner = NA_integer_), .Names = c(\"time_period\", \r\n\t\"partner\"), row.names = 1L, class = \"data.frame\")\r\nhaven::write_sav(widgets, \"w.sav\")\r\n```\r\n\r\n> sessionInfo()\r\nR version 3.3.0 (2016-05-03)\r\nPlatform: x86_64-apple-darwin13.4.0 (64-bit)\r\nRunning under: OS X 10.11.4 (El Capitan)\r\n\r\nOh, also, this is more minor: when installing via devtools, it complained about missing build tools. Solution was to go to 3.3.0, so I was a bit confused by that (I had all build tools)."},"comment":{"url":"https://api.github.com/repos/hadley/haven/issues/comments/223449030","html_url":"https://github.com/hadley/haven/issues/171#issuecomment-223449030","issue_url":"https://api.github.com/repos/hadley/haven/issues/171","id":223449030,"user":{"login":"rubenarslan","id":831109,"avatar_url":"https://avatars.githubusercontent.com/u/831109?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenarslan","html_url":"https://github.com/rubenarslan","followers_url":"https://api.github.com/users/rubenarslan/followers","following_url":"https://api.github.com/users/rubenarslan/following{/other_user}","gists_url":"https://api.github.com/users/rubenarslan/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenarslan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenarslan/subscriptions","organizations_url":"https://api.github.com/users/rubenarslan/orgs","repos_url":"https://api.github.com/users/rubenarslan/repos","events_url":"https://api.github.com/users/rubenarslan/events{/privacy}","received_events_url":"https://api.github.com/users/rubenarslan/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T23:08:21Z","updated_at":"2016-06-02T23:08:21Z","body":"I can do that but maybe I wasn't clear, I think this has nothing to do with\nvalue labels, the write_sav example writes the all numeric mtcars dataset\nand stilll crashes.\nI did not update readstat manually on my local, should I have?\nDo you still want me to try your suggestion?\n\n>\n"}}
{"actor":{"display_login":"rubenarslan"}}