{"action":"created","comment":{"url":"https://api.github.com/repos/hadley/bigrquery/pulls/comments/48348194","id":48348194,"diff_hunk":"@@ -18,3 +19,106 @@ list_datasets <- function(project) {\n \n   unlist(lapply(data, function(x) x$datasetReference$datasetId))\n }\n+\n+#' Gets an existing dataset in a project\n+#'\n+#' @param project The project name, a string","path":"R/datasets.r","position":15,"original_position":15,"commit_id":"bdd9cb05b0a38a4d2411f980a77faaa39d355ac8","original_commit_id":"bdd9cb05b0a38a4d2411f980a77faaa39d355ac8","user":{"login":"nathangoulding","id":770510,"avatar_url":"https://avatars.githubusercontent.com/u/770510?v=3","gravatar_id":"","url":"https://api.github.com/users/nathangoulding","html_url":"https://github.com/nathangoulding","followers_url":"https://api.github.com/users/nathangoulding/followers","following_url":"https://api.github.com/users/nathangoulding/following{/other_user}","gists_url":"https://api.github.com/users/nathangoulding/gists{/gist_id}","starred_url":"https://api.github.com/users/nathangoulding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathangoulding/subscriptions","organizations_url":"https://api.github.com/users/nathangoulding/orgs","repos_url":"https://api.github.com/users/nathangoulding/repos","events_url":"https://api.github.com/users/nathangoulding/events{/privacy}","received_events_url":"https://api.github.com/users/nathangoulding/received_events","type":"User","site_admin":false},"body":"Ahh yeah, we should probably stick with `project` and `dataset` in favor of consistency with what's been done before in `tables.r` even though it doesn't match the API.","created_at":"2015-12-23T14:25:44Z","updated_at":"2015-12-23T14:25:44Z","html_url":"https://github.com/hadley/bigrquery/pull/66#discussion_r48348194","pull_request_url":"https://api.github.com/repos/hadley/bigrquery/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/hadley/bigrquery/pulls/comments/48348194"},"html":{"href":"https://github.com/hadley/bigrquery/pull/66#discussion_r48348194"},"pull_request":{"href":"https://api.github.com/repos/hadley/bigrquery/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/hadley/bigrquery/pulls/66","id":54419371,"html_url":"https://github.com/hadley/bigrquery/pull/66","diff_url":"https://github.com/hadley/bigrquery/pull/66.diff","patch_url":"https://github.com/hadley/bigrquery/pull/66.patch","issue_url":"https://api.github.com/repos/hadley/bigrquery/issues/66","number":66,"state":"open","locked":false,"title":"implement crud for datasets","user":{"login":"nathangoulding","id":770510,"avatar_url":"https://avatars.githubusercontent.com/u/770510?v=3","gravatar_id":"","url":"https://api.github.com/users/nathangoulding","html_url":"https://github.com/nathangoulding","followers_url":"https://api.github.com/users/nathangoulding/followers","following_url":"https://api.github.com/users/nathangoulding/following{/other_user}","gists_url":"https://api.github.com/users/nathangoulding/gists{/gist_id}","starred_url":"https://api.github.com/users/nathangoulding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathangoulding/subscriptions","organizations_url":"https://api.github.com/users/nathangoulding/orgs","repos_url":"https://api.github.com/users/nathangoulding/repos","events_url":"https://api.github.com/users/nathangoulding/events{/privacy}","received_events_url":"https://api.github.com/users/nathangoulding/received_events","type":"User","site_admin":false},"body":"This implements the basic CRUD operations for datasets beyond `list_datasets`, so you don't have to jump back out to the bigquery console to create/delete datasets. I didn't go nuts with all of the properties of the Dataset resource, opting instead to keep it simple for what I think is probably the most common use case.","created_at":"2015-12-22T21:54:23Z","updated_at":"2015-12-23T14:25:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e9187a5f17bddb5a544313b8c87005a47db3a9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hadley/bigrquery/pulls/66/commits","review_comments_url":"https://api.github.com/repos/hadley/bigrquery/pulls/66/comments","review_comment_url":"https://api.github.com/repos/hadley/bigrquery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hadley/bigrquery/issues/66/comments","statuses_url":"https://api.github.com/repos/hadley/bigrquery/statuses/bdd9cb05b0a38a4d2411f980a77faaa39d355ac8","head":{"label":"nathangoulding:crud-datasets","ref":"crud-datasets","sha":"bdd9cb05b0a38a4d2411f980a77faaa39d355ac8","user":{"login":"nathangoulding","id":770510,"avatar_url":"https://avatars.githubusercontent.com/u/770510?v=3","gravatar_id":"","url":"https://api.github.com/users/nathangoulding","html_url":"https://github.com/nathangoulding","followers_url":"https://api.github.com/users/nathangoulding/followers","following_url":"https://api.github.com/users/nathangoulding/following{/other_user}","gists_url":"https://api.github.com/users/nathangoulding/gists{/gist_id}","starred_url":"https://api.github.com/users/nathangoulding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathangoulding/subscriptions","organizations_url":"https://api.github.com/users/nathangoulding/orgs","repos_url":"https://api.github.com/users/nathangoulding/repos","events_url":"https://api.github.com/users/nathangoulding/events{/privacy}","received_events_url":"https://api.github.com/users/nathangoulding/received_events","type":"User","site_admin":false},"repo":{"id":48397093,"name":"bigrquery","full_name":"nathangoulding/bigrquery","owner":{"login":"nathangoulding","id":770510,"avatar_url":"https://avatars.githubusercontent.com/u/770510?v=3","gravatar_id":"","url":"https://api.github.com/users/nathangoulding","html_url":"https://github.com/nathangoulding","followers_url":"https://api.github.com/users/nathangoulding/followers","following_url":"https://api.github.com/users/nathangoulding/following{/other_user}","gists_url":"https://api.github.com/users/nathangoulding/gists{/gist_id}","starred_url":"https://api.github.com/users/nathangoulding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathangoulding/subscriptions","organizations_url":"https://api.github.com/users/nathangoulding/orgs","repos_url":"https://api.github.com/users/nathangoulding/repos","events_url":"https://api.github.com/users/nathangoulding/events{/privacy}","received_events_url":"https://api.github.com/users/nathangoulding/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathangoulding/bigrquery","description":"An interface to Google's bigquery from R.","fork":true,"url":"https://api.github.com/repos/nathangoulding/bigrquery","forks_url":"https://api.github.com/repos/nathangoulding/bigrquery/forks","keys_url":"https://api.github.com/repos/nathangoulding/bigrquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathangoulding/bigrquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathangoulding/bigrquery/teams","hooks_url":"https://api.github.com/repos/nathangoulding/bigrquery/hooks","issue_events_url":"https://api.github.com/repos/nathangoulding/bigrquery/issues/events{/number}","events_url":"https://api.github.com/repos/nathangoulding/bigrquery/events","assignees_url":"https://api.github.com/repos/nathangoulding/bigrquery/assignees{/user}","branches_url":"https://api.github.com/repos/nathangoulding/bigrquery/branches{/branch}","tags_url":"https://api.github.com/repos/nathangoulding/bigrquery/tags","blobs_url":"https://api.github.com/repos/nathangoulding/bigrquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathangoulding/bigrquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathangoulding/bigrquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathangoulding/bigrquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathangoulding/bigrquery/statuses/{sha}","languages_url":"https://api.github.com/repos/nathangoulding/bigrquery/languages","stargazers_url":"https://api.github.com/repos/nathangoulding/bigrquery/stargazers","contributors_url":"https://api.github.com/repos/nathangoulding/bigrquery/contributors","subscribers_url":"https://api.github.com/repos/nathangoulding/bigrquery/subscribers","subscription_url":"https://api.github.com/repos/nathangoulding/bigrquery/subscription","commits_url":"https://api.github.com/repos/nathangoulding/bigrquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathangoulding/bigrquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathangoulding/bigrquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathangoulding/bigrquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathangoulding/bigrquery/contents/{+path}","compare_url":"https://api.github.com/repos/nathangoulding/bigrquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathangoulding/bigrquery/merges","archive_url":"https://api.github.com/repos/nathangoulding/bigrquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathangoulding/bigrquery/downloads","issues_url":"https://api.github.com/repos/nathangoulding/bigrquery/issues{/number}","pulls_url":"https://api.github.com/repos/nathangoulding/bigrquery/pulls{/number}","milestones_url":"https://api.github.com/repos/nathangoulding/bigrquery/milestones{/number}","notifications_url":"https://api.github.com/repos/nathangoulding/bigrquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathangoulding/bigrquery/labels{/name}","releases_url":"https://api.github.com/repos/nathangoulding/bigrquery/releases{/id}","created_at":"2015-12-21T22:18:11Z","updated_at":"2015-12-21T22:18:11Z","pushed_at":"2015-12-22T22:06:57Z","git_url":"git://github.com/nathangoulding/bigrquery.git","ssh_url":"git@github.com:nathangoulding/bigrquery.git","clone_url":"https://github.com/nathangoulding/bigrquery.git","svn_url":"https://github.com/nathangoulding/bigrquery","homepage":null,"size":131,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hadley:master","ref":"master","sha":"cdea5b807d3e84987b909e05658d34e4e8099d67","user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"repo":{"id":10221246,"name":"bigrquery","full_name":"hadley/bigrquery","owner":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hadley/bigrquery","description":"An interface to Google's bigquery from R.","fork":false,"url":"https://api.github.com/repos/hadley/bigrquery","forks_url":"https://api.github.com/repos/hadley/bigrquery/forks","keys_url":"https://api.github.com/repos/hadley/bigrquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hadley/bigrquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hadley/bigrquery/teams","hooks_url":"https://api.github.com/repos/hadley/bigrquery/hooks","issue_events_url":"https://api.github.com/repos/hadley/bigrquery/issues/events{/number}","events_url":"https://api.github.com/repos/hadley/bigrquery/events","assignees_url":"https://api.github.com/repos/hadley/bigrquery/assignees{/user}","branches_url":"https://api.github.com/repos/hadley/bigrquery/branches{/branch}","tags_url":"https://api.github.com/repos/hadley/bigrquery/tags","blobs_url":"https://api.github.com/repos/hadley/bigrquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hadley/bigrquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hadley/bigrquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/hadley/bigrquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hadley/bigrquery/statuses/{sha}","languages_url":"https://api.github.com/repos/hadley/bigrquery/languages","stargazers_url":"https://api.github.com/repos/hadley/bigrquery/stargazers","contributors_url":"https://api.github.com/repos/hadley/bigrquery/contributors","subscribers_url":"https://api.github.com/repos/hadley/bigrquery/subscribers","subscription_url":"https://api.github.com/repos/hadley/bigrquery/subscription","commits_url":"https://api.github.com/repos/hadley/bigrquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/hadley/bigrquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/hadley/bigrquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/hadley/bigrquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/hadley/bigrquery/contents/{+path}","compare_url":"https://api.github.com/repos/hadley/bigrquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hadley/bigrquery/merges","archive_url":"https://api.github.com/repos/hadley/bigrquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hadley/bigrquery/downloads","issues_url":"https://api.github.com/repos/hadley/bigrquery/issues{/number}","pulls_url":"https://api.github.com/repos/hadley/bigrquery/pulls{/number}","milestones_url":"https://api.github.com/repos/hadley/bigrquery/milestones{/number}","notifications_url":"https://api.github.com/repos/hadley/bigrquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hadley/bigrquery/labels{/name}","releases_url":"https://api.github.com/repos/hadley/bigrquery/releases{/id}","created_at":"2013-05-22T14:04:16Z","updated_at":"2015-12-22T03:54:51Z","pushed_at":"2015-12-23T09:29:03Z","git_url":"git://github.com/hadley/bigrquery.git","ssh_url":"git@github.com:hadley/bigrquery.git","clone_url":"https://github.com/hadley/bigrquery.git","svn_url":"https://github.com/hadley/bigrquery","homepage":null,"size":192,"stargazers_count":118,"watchers_count":118,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":23,"forks":49,"open_issues":23,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hadley/bigrquery/pulls/66"},"html":{"href":"https://github.com/hadley/bigrquery/pull/66"},"issue":{"href":"https://api.github.com/repos/hadley/bigrquery/issues/66"},"comments":{"href":"https://api.github.com/repos/hadley/bigrquery/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/hadley/bigrquery/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/hadley/bigrquery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hadley/bigrquery/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/hadley/bigrquery/statuses/bdd9cb05b0a38a4d2411f980a77faaa39d355ac8"}}}}