{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/packrat/issues/270","repository_url":"https://api.github.com/repos/rstudio/packrat","labels_url":"https://api.github.com/repos/rstudio/packrat/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/packrat/issues/270/comments","events_url":"https://api.github.com/repos/rstudio/packrat/issues/270/events","html_url":"https://github.com/rstudio/packrat/issues/270","id":134943237,"number":270,"title":"handle private GitHub repositories","user":{"login":"kevinushey","id":1976582,"avatar_url":"https://avatars.githubusercontent.com/u/1976582?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinushey","html_url":"https://github.com/kevinushey","followers_url":"https://api.github.com/users/kevinushey/followers","following_url":"https://api.github.com/users/kevinushey/following{/other_user}","gists_url":"https://api.github.com/users/kevinushey/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinushey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinushey/subscriptions","organizations_url":"https://api.github.com/users/kevinushey/orgs","repos_url":"https://api.github.com/users/kevinushey/repos","events_url":"https://api.github.com/users/kevinushey/events{/privacy}","received_events_url":"https://api.github.com/users/kevinushey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-19T18:40:43Z","updated_at":"2016-02-19T18:57:59Z","closed_at":null,"body":"Two options:\r\n\r\n1. Implicitly require and use `devtools` when attempting to access a GitHub repository when possible,\r\n2. Wait for R 3.3.0 + `libcurl` and see if we can handle download + authentication there."},"comment":{"url":"https://api.github.com/repos/rstudio/packrat/issues/comments/186360959","html_url":"https://github.com/rstudio/packrat/issues/270#issuecomment-186360959","issue_url":"https://api.github.com/repos/rstudio/packrat/issues/270","id":186360959,"user":{"login":"kevinushey","id":1976582,"avatar_url":"https://avatars.githubusercontent.com/u/1976582?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinushey","html_url":"https://github.com/kevinushey","followers_url":"https://api.github.com/users/kevinushey/followers","following_url":"https://api.github.com/users/kevinushey/following{/other_user}","gists_url":"https://api.github.com/users/kevinushey/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinushey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinushey/subscriptions","organizations_url":"https://api.github.com/users/kevinushey/orgs","repos_url":"https://api.github.com/users/kevinushey/repos","events_url":"https://api.github.com/users/kevinushey/events{/privacy}","received_events_url":"https://api.github.com/users/kevinushey/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T18:57:59Z","updated_at":"2016-02-19T18:57:59Z","body":"Unfortunately, I don't think so -- as-is, the packrat only knows how to handle CRAN-like repositories and public GitHub repositories (since those were the most common cases). Part of this is all because we wanted packrat to be as light on dependencies as possible (and so did not take an explicit dependency on e.g. `devtools` or `httr` and so on).\r\n\r\nWe might be able to make private GitHub repositories work by using the appropriate `devtools` call if available, though -- that would be the lowest friction way of resolving this particular problem."}}