{"action":"created","issue":{"url":"https://api.github.com/repos/HertieDataScience/SyllabusAndLectures/issues/62","labels_url":"https://api.github.com/repos/HertieDataScience/SyllabusAndLectures/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/HertieDataScience/SyllabusAndLectures/issues/62/comments","events_url":"https://api.github.com/repos/HertieDataScience/SyllabusAndLectures/issues/62/events","html_url":"https://github.com/HertieDataScience/SyllabusAndLectures/issues/62","id":116304431,"number":62,"title":"Downloading .R file from browser","user":{"login":"mr-r0b0t","id":14181408,"avatar_url":"https://avatars.githubusercontent.com/u/14181408?v=3","gravatar_id":"","url":"https://api.github.com/users/mr-r0b0t","html_url":"https://github.com/mr-r0b0t","followers_url":"https://api.github.com/users/mr-r0b0t/followers","following_url":"https://api.github.com/users/mr-r0b0t/following{/other_user}","gists_url":"https://api.github.com/users/mr-r0b0t/gists{/gist_id}","starred_url":"https://api.github.com/users/mr-r0b0t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mr-r0b0t/subscriptions","organizations_url":"https://api.github.com/users/mr-r0b0t/orgs","repos_url":"https://api.github.com/users/mr-r0b0t/repos","events_url":"https://api.github.com/users/mr-r0b0t/events{/privacy}","received_events_url":"https://api.github.com/users/mr-r0b0t/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-11T10:22:40Z","updated_at":"2015-11-12T16:29:05Z","closed_at":"2015-11-11T20:41:08Z","body":"Hi everyone,\r\n\r\nI'm trying to download a .R file from a website (https) with a download button (Harvard Dataverse), but it doesn't download the file directly to my local hard drive. It only displays the file in the browser in a strange way and doesn't show the actual .R file.\r\n\r\nI was using the standard R Studio utils package and some other ones (e.g. downloader), but I always get the same error message:\r\n\r\n\"download had nonzero exit status\"\r\n\r\nThis is the code I was using:\r\n\r\nutils::download.file(url = \"https://dataverse.harvard.edu/api/access/datafile/2684585\", destfile = \"~/GitHub/CollaborativeResearchProject/\")\r\n\r\nHas anyone had a similar problem or can offer a solution?\r\n\r\nThank's a lot!\r\n\r\nBest,\r\n\r\nBenedikt"},"comment":{"url":"https://api.github.com/repos/HertieDataScience/SyllabusAndLectures/issues/comments/156156339","html_url":"https://github.com/HertieDataScience/SyllabusAndLectures/issues/62#issuecomment-156156339","issue_url":"https://api.github.com/repos/HertieDataScience/SyllabusAndLectures/issues/62","id":156156339,"user":{"login":"christophergandrud","id":1285805,"avatar_url":"https://avatars.githubusercontent.com/u/1285805?v=3","gravatar_id":"","url":"https://api.github.com/users/christophergandrud","html_url":"https://github.com/christophergandrud","followers_url":"https://api.github.com/users/christophergandrud/followers","following_url":"https://api.github.com/users/christophergandrud/following{/other_user}","gists_url":"https://api.github.com/users/christophergandrud/gists{/gist_id}","starred_url":"https://api.github.com/users/christophergandrud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophergandrud/subscriptions","organizations_url":"https://api.github.com/users/christophergandrud/orgs","repos_url":"https://api.github.com/users/christophergandrud/repos","events_url":"https://api.github.com/users/christophergandrud/events{/privacy}","received_events_url":"https://api.github.com/users/christophergandrud/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T16:29:05Z","updated_at":"2015-11-12T16:29:05Z","body":"Perfect"}}