{"action":"opened","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1298","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1298/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1298/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1298/events","html_url":"https://github.com/Rdatatable/data.table/issues/1298","id":103605540,"number":1298,"title":"eval doesn't work for `.` in `by`","user":{"login":"eantonya","id":691190,"avatar_url":"https://avatars.githubusercontent.com/u/691190?v=3","gravatar_id":"","url":"https://api.github.com/users/eantonya","html_url":"https://github.com/eantonya","followers_url":"https://api.github.com/users/eantonya/followers","following_url":"https://api.github.com/users/eantonya/following{/other_user}","gists_url":"https://api.github.com/users/eantonya/gists{/gist_id}","starred_url":"https://api.github.com/users/eantonya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eantonya/subscriptions","organizations_url":"https://api.github.com/users/eantonya/orgs","repos_url":"https://api.github.com/users/eantonya/repos","events_url":"https://api.github.com/users/eantonya/events{/privacy}","received_events_url":"https://api.github.com/users/eantonya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Rdatatable/data.table/labels/bug","name":"bug","color":"DF3A2C"},{"url":"https://api.github.com/repos/Rdatatable/data.table/labels/Medium","name":"Medium","color":"5F353D"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T22:09:39Z","updated_at":"2015-08-27T22:09:39Z","closed_at":null,"body":"```r\r\nd = data.table(a = 1)\r\nq = quote(.(a))\r\n\r\nd[, eval(q)]\r\n#   a\r\n#1: 1\r\n\r\nd[, 1, by = .(a)]\r\n#   a V1\r\n#1: 1  1\r\n\r\n# the problem\r\nd[, 1, by = eval(q)]\r\n#Error in eval(expr, envir, enclos) : could not find function \".\"\r\n```"}}