{"action":"closed","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1933","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1933/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1933/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1933/events","html_url":"https://github.com/Rdatatable/data.table/issues/1933","id":192122030,"number":1933,"title":"Crashing Rstudio when combining J(), function, by = .EACHI, and nomatch = 0. ","user":{"login":"ProfFancyPants","id":7212413,"avatar_url":"https://avatars.githubusercontent.com/u/7212413?v=3","gravatar_id":"","url":"https://api.github.com/users/ProfFancyPants","html_url":"https://github.com/ProfFancyPants","followers_url":"https://api.github.com/users/ProfFancyPants/followers","following_url":"https://api.github.com/users/ProfFancyPants/following{/other_user}","gists_url":"https://api.github.com/users/ProfFancyPants/gists{/gist_id}","starred_url":"https://api.github.com/users/ProfFancyPants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProfFancyPants/subscriptions","organizations_url":"https://api.github.com/users/ProfFancyPants/orgs","repos_url":"https://api.github.com/users/ProfFancyPants/repos","events_url":"https://api.github.com/users/ProfFancyPants/events{/privacy}","received_events_url":"https://api.github.com/users/ProfFancyPants/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Rdatatable/data.table/milestones/6","html_url":"https://github.com/Rdatatable/data.table/milestones/v1.9.10","labels_url":"https://api.github.com/repos/Rdatatable/data.table/milestones/6/labels","id":2162317,"number":6,"title":"v1.9.10","description":"","creator":{"login":"mattdowle","id":2779998,"avatar_url":"https://avatars.githubusercontent.com/u/2779998?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdowle","html_url":"https://github.com/mattdowle","followers_url":"https://api.github.com/users/mattdowle/followers","following_url":"https://api.github.com/users/mattdowle/following{/other_user}","gists_url":"https://api.github.com/users/mattdowle/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdowle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdowle/subscriptions","organizations_url":"https://api.github.com/users/mattdowle/orgs","repos_url":"https://api.github.com/users/mattdowle/repos","events_url":"https://api.github.com/users/mattdowle/events{/privacy}","received_events_url":"https://api.github.com/users/mattdowle/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":7,"state":"open","created_at":"2016-11-28T22:26:05Z","updated_at":"2016-11-30T03:01:33Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-11-28T21:29:17Z","updated_at":"2016-11-30T03:01:33Z","closed_at":"2016-11-30T03:01:33Z","body":"Hi guys,\r\n\r\nI found a potential bug that crashes Rstudio all together. Here is the reproducible example. \r\n\r\n```\r\nlibrary(data.table)\r\nre_d <-\r\n  structure(\r\n    list(\r\n      rn = c(\"any_of(fn1)\", \"any_of(fn2)\", \"main_folder\", \"stata_file\",\r\n        \"text?\", \"text?\", \"text?\"),\r\n      re = c(NA, NA, NA, NA, \"[^/]+?\", \"[^/]+?\", \"[^/]+?\")\r\n    ),\r\n    .Names = c(\"rn\", \"re\"),\r\n    class = c(\"data.table\", \"data.frame\"),\r\n    row.names = c(NA, -7L),\r\n    sorted = \"rn\"\r\n  )\r\npf <- function(x) {\r\n  print(x)\r\n  utils::flush.console()\r\n  return(invisible(x))\r\n}\r\nobj_n <- c(\"excel_file\", \"fn1\", \"fn2\", \"main_folder\", \"scan_path\", \"spss_file\",  \"stata_file\", \"x\")\r\n\r\n# This works fine\r\nre_d[, pf(rn)]\r\n# This works fine\r\nre_d[J(obj_n), rn,  by = .EACHI, nomatch = 0]\r\n# This bring the pain train. \r\nre_d[J(obj_n), pf(rn),  by = .EACHI, nomatch = 0]\r\n```\r\n\r\nBefore Rstudio disintegrates all I see is:\r\n\r\n> [1]\r\n> &nbsp;\r\n> &nbsp;\r\n\r\nMy session info:\r\n> sessionInfo()\r\n> R version 3.3.2 (2016-10-31)\r\n> Platform: x86_64-w64-mingw32/x64 (64-bit)\r\n> Running under: Windows >= 8 x64 (build 9200)\r\n> locale:\r\n> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   \r\n> [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          \r\n> [5] LC_TIME=English_United States.1252    \r\n> attached base packages:\r\n> [1] stats     graphics  grDevices utils     datasets  methods   base     \r\n> other attached packages:\r\n> [1] data.table_1.9.8\r\n> loaded via a namespace (and not attached):\r\n> [1] tools_3.3.2"}}
{"actor":{"display_login":"mattdowle"}}