{"action":"created","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1926","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1926/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1926/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1926/events","html_url":"https://github.com/Rdatatable/data.table/issues/1926","id":191361306,"number":1926,"title":".SD is locked for DT[, DT2[.SD]] joins","user":{"login":"franknarf1","id":4649190,"avatar_url":"https://avatars.githubusercontent.com/u/4649190?v=3","gravatar_id":"","url":"https://api.github.com/users/franknarf1","html_url":"https://github.com/franknarf1","followers_url":"https://api.github.com/users/franknarf1/followers","following_url":"https://api.github.com/users/franknarf1/following{/other_user}","gists_url":"https://api.github.com/users/franknarf1/gists{/gist_id}","starred_url":"https://api.github.com/users/franknarf1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franknarf1/subscriptions","organizations_url":"https://api.github.com/users/franknarf1/orgs","repos_url":"https://api.github.com/users/franknarf1/repos","events_url":"https://api.github.com/users/franknarf1/events{/privacy}","received_events_url":"https://api.github.com/users/franknarf1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-23T19:29:20Z","updated_at":"2016-12-07T13:45:43Z","closed_at":null,"body":"Based on [an SO question](http://stackoverflow.com/q/40772423/), I was trying something like...\r\n\r\n    library(data.table)\r\n    DT = data.table(id = 1:2, v = 3:4)\r\n    DT2 = data.table(id = 1, x = 5)\r\n    DT[id == 1, DT2[.SD, on=\"id\"]]\r\n\r\n> Error in set(i, j = lc, value = newval) : \r\n>   .SD is locked. Updating .SD by reference using := or set are reserved for future use. Use := in j directly. Or use copy(.SD) as a (slow) last resort, until shallow() is exported.\r\n\r\nI wasn't expecting to see this error since I'm not using `set`."},"comment":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/comments/265450511","html_url":"https://github.com/Rdatatable/data.table/issues/1926#issuecomment-265450511","issue_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1926","id":265450511,"user":{"login":"franknarf1","id":4649190,"avatar_url":"https://avatars.githubusercontent.com/u/4649190?v=3","gravatar_id":"","url":"https://api.github.com/users/franknarf1","html_url":"https://github.com/franknarf1","followers_url":"https://api.github.com/users/franknarf1/followers","following_url":"https://api.github.com/users/franknarf1/following{/other_user}","gists_url":"https://api.github.com/users/franknarf1/gists{/gist_id}","starred_url":"https://api.github.com/users/franknarf1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franknarf1/subscriptions","organizations_url":"https://api.github.com/users/franknarf1/orgs","repos_url":"https://api.github.com/users/franknarf1/repos","events_url":"https://api.github.com/users/franknarf1/events{/privacy}","received_events_url":"https://api.github.com/users/franknarf1/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T13:45:43Z","updated_at":"2016-12-07T13:45:43Z","body":"@skanskan You cannot normally refer to `.SD` in `i`, so that would be a new FR."}}
{"actor":{"display_login":"franknarf1"}}