{"action":"created","comment":{"url":"https://api.github.com/repos/robertzk/s3mpi/pulls/comments/40976377","id":40976377,"diff_hunk":"@@ -1,11 +1,41 @@\n s3.get <- function (bucket, bucket.location = \"US\", verbose = FALSE, debug = FALSE) {\n   AWS.tools:::check.bucket(bucket)\n-  x.serialized <- tempfile()\n-  s3.cmd <- paste(\"s3cmd get\", bucket, x.serialized, paste(\"--bucket-location\",\n-      bucket.location), ifelse(verbose, \"--verbose --progress\",\n-      \"--no-progress\"), ifelse(debug, \"--debug\", \"\"))\n-  system(s3.cmd)\n-  ans <- readRDS(x.serialized)\n-  unlink(x.serialized)\n+\n+  # Helper function for fetching data from s3\n+  fetch <- function(){\n+    x.serialized <- tempfile()\n+    on.exit(unlink(x.serialized), add = TRUE)\n+\n+    unlink(x.serialized)","path":"R/s3.get.R","position":16,"original_position":16,"commit_id":"1853f6cea15d10d4ba9345e73e213830bf42bc2c","original_commit_id":"1853f6cea15d10d4ba9345e73e213830bf42bc2c","user":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"body":"Delete this line and you're good","created_at":"2015-10-01T22:49:39Z","updated_at":"2015-10-01T22:49:39Z","html_url":"https://github.com/robertzk/s3mpi/pull/29#discussion_r40976377","pull_request_url":"https://api.github.com/repos/robertzk/s3mpi/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/robertzk/s3mpi/pulls/comments/40976377"},"html":{"href":"https://github.com/robertzk/s3mpi/pull/29#discussion_r40976377"},"pull_request":{"href":"https://api.github.com/repos/robertzk/s3mpi/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/robertzk/s3mpi/pulls/29","id":46579204,"html_url":"https://github.com/robertzk/s3mpi/pull/29","diff_url":"https://github.com/robertzk/s3mpi/pull/29.diff","patch_url":"https://github.com/robertzk/s3mpi/pull/29.patch","issue_url":"https://api.github.com/repos/robertzk/s3mpi/issues/29","number":29,"state":"open","locked":false,"title":"s3.get uses kirillseva/cacher to cache results","user":{"login":"elainexmas","id":3604354,"avatar_url":"https://avatars.githubusercontent.com/u/3604354?v=3","gravatar_id":"","url":"https://api.github.com/users/elainexmas","html_url":"https://github.com/elainexmas","followers_url":"https://api.github.com/users/elainexmas/followers","following_url":"https://api.github.com/users/elainexmas/following{/other_user}","gists_url":"https://api.github.com/users/elainexmas/gists{/gist_id}","starred_url":"https://api.github.com/users/elainexmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elainexmas/subscriptions","organizations_url":"https://api.github.com/users/elainexmas/orgs","repos_url":"https://api.github.com/users/elainexmas/repos","events_url":"https://api.github.com/users/elainexmas/events{/privacy}","received_events_url":"https://api.github.com/users/elainexmas/received_events","type":"User","site_admin":false},"body":"@kirillseva ","created_at":"2015-10-01T21:27:30Z","updated_at":"2015-10-01T22:49:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79f531d0faa020b838f8ade73221e23666ae01cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robertzk/s3mpi/pulls/29/commits","review_comments_url":"https://api.github.com/repos/robertzk/s3mpi/pulls/29/comments","review_comment_url":"https://api.github.com/repos/robertzk/s3mpi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robertzk/s3mpi/issues/29/comments","statuses_url":"https://api.github.com/repos/robertzk/s3mpi/statuses/1853f6cea15d10d4ba9345e73e213830bf42bc2c","head":{"label":"elainexmas:cacher_get","ref":"cacher_get","sha":"1853f6cea15d10d4ba9345e73e213830bf42bc2c","user":{"login":"elainexmas","id":3604354,"avatar_url":"https://avatars.githubusercontent.com/u/3604354?v=3","gravatar_id":"","url":"https://api.github.com/users/elainexmas","html_url":"https://github.com/elainexmas","followers_url":"https://api.github.com/users/elainexmas/followers","following_url":"https://api.github.com/users/elainexmas/following{/other_user}","gists_url":"https://api.github.com/users/elainexmas/gists{/gist_id}","starred_url":"https://api.github.com/users/elainexmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elainexmas/subscriptions","organizations_url":"https://api.github.com/users/elainexmas/orgs","repos_url":"https://api.github.com/users/elainexmas/repos","events_url":"https://api.github.com/users/elainexmas/events{/privacy}","received_events_url":"https://api.github.com/users/elainexmas/received_events","type":"User","site_admin":false},"repo":{"id":43513276,"name":"s3mpi","full_name":"elainexmas/s3mpi","owner":{"login":"elainexmas","id":3604354,"avatar_url":"https://avatars.githubusercontent.com/u/3604354?v=3","gravatar_id":"","url":"https://api.github.com/users/elainexmas","html_url":"https://github.com/elainexmas","followers_url":"https://api.github.com/users/elainexmas/followers","following_url":"https://api.github.com/users/elainexmas/following{/other_user}","gists_url":"https://api.github.com/users/elainexmas/gists{/gist_id}","starred_url":"https://api.github.com/users/elainexmas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elainexmas/subscriptions","organizations_url":"https://api.github.com/users/elainexmas/orgs","repos_url":"https://api.github.com/users/elainexmas/repos","events_url":"https://api.github.com/users/elainexmas/events{/privacy}","received_events_url":"https://api.github.com/users/elainexmas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elainexmas/s3mpi","description":"R message passing interface using S3 storage","fork":true,"url":"https://api.github.com/repos/elainexmas/s3mpi","forks_url":"https://api.github.com/repos/elainexmas/s3mpi/forks","keys_url":"https://api.github.com/repos/elainexmas/s3mpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elainexmas/s3mpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elainexmas/s3mpi/teams","hooks_url":"https://api.github.com/repos/elainexmas/s3mpi/hooks","issue_events_url":"https://api.github.com/repos/elainexmas/s3mpi/issues/events{/number}","events_url":"https://api.github.com/repos/elainexmas/s3mpi/events","assignees_url":"https://api.github.com/repos/elainexmas/s3mpi/assignees{/user}","branches_url":"https://api.github.com/repos/elainexmas/s3mpi/branches{/branch}","tags_url":"https://api.github.com/repos/elainexmas/s3mpi/tags","blobs_url":"https://api.github.com/repos/elainexmas/s3mpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elainexmas/s3mpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elainexmas/s3mpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/elainexmas/s3mpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elainexmas/s3mpi/statuses/{sha}","languages_url":"https://api.github.com/repos/elainexmas/s3mpi/languages","stargazers_url":"https://api.github.com/repos/elainexmas/s3mpi/stargazers","contributors_url":"https://api.github.com/repos/elainexmas/s3mpi/contributors","subscribers_url":"https://api.github.com/repos/elainexmas/s3mpi/subscribers","subscription_url":"https://api.github.com/repos/elainexmas/s3mpi/subscription","commits_url":"https://api.github.com/repos/elainexmas/s3mpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/elainexmas/s3mpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/elainexmas/s3mpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/elainexmas/s3mpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/elainexmas/s3mpi/contents/{+path}","compare_url":"https://api.github.com/repos/elainexmas/s3mpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elainexmas/s3mpi/merges","archive_url":"https://api.github.com/repos/elainexmas/s3mpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elainexmas/s3mpi/downloads","issues_url":"https://api.github.com/repos/elainexmas/s3mpi/issues{/number}","pulls_url":"https://api.github.com/repos/elainexmas/s3mpi/pulls{/number}","milestones_url":"https://api.github.com/repos/elainexmas/s3mpi/milestones{/number}","notifications_url":"https://api.github.com/repos/elainexmas/s3mpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elainexmas/s3mpi/labels{/name}","releases_url":"https://api.github.com/repos/elainexmas/s3mpi/releases{/id}","created_at":"2015-10-01T18:25:57Z","updated_at":"2015-10-01T18:25:58Z","pushed_at":"2015-10-01T22:42:39Z","git_url":"git://github.com/elainexmas/s3mpi.git","ssh_url":"git@github.com:elainexmas/s3mpi.git","clone_url":"https://github.com/elainexmas/s3mpi.git","svn_url":"https://github.com/elainexmas/s3mpi","homepage":null,"size":141,"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":"robertzk:master","ref":"master","sha":"59d60181cb808c11e24d50dcee86f375625c50fd","user":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"repo":{"id":15145794,"name":"s3mpi","full_name":"robertzk/s3mpi","owner":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robertzk/s3mpi","description":"R message passing interface using S3 storage","fork":false,"url":"https://api.github.com/repos/robertzk/s3mpi","forks_url":"https://api.github.com/repos/robertzk/s3mpi/forks","keys_url":"https://api.github.com/repos/robertzk/s3mpi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robertzk/s3mpi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robertzk/s3mpi/teams","hooks_url":"https://api.github.com/repos/robertzk/s3mpi/hooks","issue_events_url":"https://api.github.com/repos/robertzk/s3mpi/issues/events{/number}","events_url":"https://api.github.com/repos/robertzk/s3mpi/events","assignees_url":"https://api.github.com/repos/robertzk/s3mpi/assignees{/user}","branches_url":"https://api.github.com/repos/robertzk/s3mpi/branches{/branch}","tags_url":"https://api.github.com/repos/robertzk/s3mpi/tags","blobs_url":"https://api.github.com/repos/robertzk/s3mpi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robertzk/s3mpi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robertzk/s3mpi/git/refs{/sha}","trees_url":"https://api.github.com/repos/robertzk/s3mpi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robertzk/s3mpi/statuses/{sha}","languages_url":"https://api.github.com/repos/robertzk/s3mpi/languages","stargazers_url":"https://api.github.com/repos/robertzk/s3mpi/stargazers","contributors_url":"https://api.github.com/repos/robertzk/s3mpi/contributors","subscribers_url":"https://api.github.com/repos/robertzk/s3mpi/subscribers","subscription_url":"https://api.github.com/repos/robertzk/s3mpi/subscription","commits_url":"https://api.github.com/repos/robertzk/s3mpi/commits{/sha}","git_commits_url":"https://api.github.com/repos/robertzk/s3mpi/git/commits{/sha}","comments_url":"https://api.github.com/repos/robertzk/s3mpi/comments{/number}","issue_comment_url":"https://api.github.com/repos/robertzk/s3mpi/issues/comments{/number}","contents_url":"https://api.github.com/repos/robertzk/s3mpi/contents/{+path}","compare_url":"https://api.github.com/repos/robertzk/s3mpi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robertzk/s3mpi/merges","archive_url":"https://api.github.com/repos/robertzk/s3mpi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robertzk/s3mpi/downloads","issues_url":"https://api.github.com/repos/robertzk/s3mpi/issues{/number}","pulls_url":"https://api.github.com/repos/robertzk/s3mpi/pulls{/number}","milestones_url":"https://api.github.com/repos/robertzk/s3mpi/milestones{/number}","notifications_url":"https://api.github.com/repos/robertzk/s3mpi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robertzk/s3mpi/labels{/name}","releases_url":"https://api.github.com/repos/robertzk/s3mpi/releases{/id}","created_at":"2013-12-12T19:49:41Z","updated_at":"2015-05-06T00:32:53Z","pushed_at":"2015-10-01T22:42:40Z","git_url":"git://github.com/robertzk/s3mpi.git","ssh_url":"git@github.com:robertzk/s3mpi.git","clone_url":"https://github.com/robertzk/s3mpi.git","svn_url":"https://github.com/robertzk/s3mpi","homepage":null,"size":564,"stargazers_count":4,"watchers_count":4,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robertzk/s3mpi/pulls/29"},"html":{"href":"https://github.com/robertzk/s3mpi/pull/29"},"issue":{"href":"https://api.github.com/repos/robertzk/s3mpi/issues/29"},"comments":{"href":"https://api.github.com/repos/robertzk/s3mpi/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/robertzk/s3mpi/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/robertzk/s3mpi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robertzk/s3mpi/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/robertzk/s3mpi/statuses/1853f6cea15d10d4ba9345e73e213830bf42bc2c"}}}}