{"action":"created","issue":{"url":"https://api.github.com/repos/beanumber/nyc311/issues/15","repository_url":"https://api.github.com/repos/beanumber/nyc311","labels_url":"https://api.github.com/repos/beanumber/nyc311/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/beanumber/nyc311/issues/15/comments","events_url":"https://api.github.com/repos/beanumber/nyc311/issues/15/events","html_url":"https://github.com/beanumber/nyc311/issues/15","id":180985795,"number":15,"title":"Error: zero-length inputs cannot be mixed with those of non-zero length","user":{"login":"liwencong1995","id":17008109,"avatar_url":"https://avatars.githubusercontent.com/u/17008109?v=3","gravatar_id":"","url":"https://api.github.com/users/liwencong1995","html_url":"https://github.com/liwencong1995","followers_url":"https://api.github.com/users/liwencong1995/followers","following_url":"https://api.github.com/users/liwencong1995/following{/other_user}","gists_url":"https://api.github.com/users/liwencong1995/gists{/gist_id}","starred_url":"https://api.github.com/users/liwencong1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liwencong1995/subscriptions","organizations_url":"https://api.github.com/users/liwencong1995/orgs","repos_url":"https://api.github.com/users/liwencong1995/repos","events_url":"https://api.github.com/users/liwencong1995/events{/privacy}","received_events_url":"https://api.github.com/users/liwencong1995/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-10-04T19:42:21Z","updated_at":"2016-12-14T20:47:31Z","closed_at":null,"body":"I was able to simply fix this error by using `download.file` instead of `smart_download`. However, I am not sure whether I should get rid of smart_download from my `etl_extract` function. \nMaybe `apply` is not working properly?\n\n```\n> smart_download(obj, src = valid_months$src, \n+                    new_filenames = basename(valid_months$lcl), \n+                    method = \"curl\", quiet = FALSE)\n```\n\nError Message:\n\n```\nError in mapply(utils::download.file, src[missing], lcl[missing], ... = ...) : \n  zero-length inputs cannot be mixed with those of non-zero length\n```\n\nThe command below works fine, but we have to add a for loop in order to download data for all the months:\n\n```\ndownload.file(valid_months$src[[1]], valid_months$lcl[[1]])\n```\n"},"comment":{"url":"https://api.github.com/repos/beanumber/nyc311/issues/comments/267151797","html_url":"https://github.com/beanumber/nyc311/issues/15#issuecomment-267151797","issue_url":"https://api.github.com/repos/beanumber/nyc311/issues/15","id":267151797,"user":{"login":"beanumber","id":2774211,"avatar_url":"https://avatars.githubusercontent.com/u/2774211?v=3","gravatar_id":"","url":"https://api.github.com/users/beanumber","html_url":"https://github.com/beanumber","followers_url":"https://api.github.com/users/beanumber/followers","following_url":"https://api.github.com/users/beanumber/following{/other_user}","gists_url":"https://api.github.com/users/beanumber/gists{/gist_id}","starred_url":"https://api.github.com/users/beanumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beanumber/subscriptions","organizations_url":"https://api.github.com/users/beanumber/orgs","repos_url":"https://api.github.com/users/beanumber/repos","events_url":"https://api.github.com/users/beanumber/events{/privacy}","received_events_url":"https://api.github.com/users/beanumber/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T20:47:31Z","updated_at":"2016-12-14T20:47:31Z","body":"Great, sounds like you can close this then. "}}
{"actor":{"display_login":"beanumber"}}