{"action":"created","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1583","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1583/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1583/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1583/events","html_url":"https://github.com/Rdatatable/data.table/pull/1583","id":139443182,"number":1583,"title":"Closes #1577; setkeyv accepts comma-separated key argument","user":{"login":"MichaelChirico","id":7606389,"avatar_url":"https://avatars.githubusercontent.com/u/7606389?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelChirico","html_url":"https://github.com/MichaelChirico","followers_url":"https://api.github.com/users/MichaelChirico/followers","following_url":"https://api.github.com/users/MichaelChirico/following{/other_user}","gists_url":"https://api.github.com/users/MichaelChirico/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelChirico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelChirico/subscriptions","organizations_url":"https://api.github.com/users/MichaelChirico/orgs","repos_url":"https://api.github.com/users/MichaelChirico/repos","events_url":"https://api.github.com/users/MichaelChirico/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelChirico/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-09T01:10:26Z","updated_at":"2016-03-14T13:50:14Z","closed_at":"2016-03-14T07:09:17Z","pull_request":{"url":"https://api.github.com/repos/Rdatatable/data.table/pulls/1583","html_url":"https://github.com/Rdatatable/data.table/pull/1583","diff_url":"https://github.com/Rdatatable/data.table/pull/1583.diff","patch_url":"https://github.com/Rdatatable/data.table/pull/1583.patch"},"body":"I left the (basically redundant) error message in `data.table()` since the arguments are named differently:\r\n\r\n    if (!is.character(key)) stop(\"key argument of data.table() must be character\")\r\n\r\nOnce this is merged I'll edit #1578."},"comment":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/comments/196317821","html_url":"https://github.com/Rdatatable/data.table/pull/1583#issuecomment-196317821","issue_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1583","id":196317821,"user":{"login":"MichaelChirico","id":7606389,"avatar_url":"https://avatars.githubusercontent.com/u/7606389?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelChirico","html_url":"https://github.com/MichaelChirico","followers_url":"https://api.github.com/users/MichaelChirico/followers","following_url":"https://api.github.com/users/MichaelChirico/following{/other_user}","gists_url":"https://api.github.com/users/MichaelChirico/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelChirico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelChirico/subscriptions","organizations_url":"https://api.github.com/users/MichaelChirico/orgs","repos_url":"https://api.github.com/users/MichaelChirico/repos","events_url":"https://api.github.com/users/MichaelChirico/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelChirico/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T13:50:14Z","updated_at":"2016-03-14T13:50:14Z","body":"Again, this is really about `setDT` and `as.data.table`. Documentation for `setDT` currently says `key = \"x,y,z\"` works (it doesn't).\r\n\r\nWe could just remove that from the documentation...\r\n\r\nBut I still don't see why comma-separated `key` argument should work for `data.table()` but not for other ways of creating a `data.table`."}}