New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when fetching package sources from private GitHub repo #447
Comments
|
Is in that project? |
|
Thanks for your quick response. yes, devtools is installed and available via: The output of I think the issue here is that this is a repo hosted on a internal corporate github. By "private repo" I meant a repo hosted on our private internal github, not on github.com, but I realize this may cause confusion. I will update the title of the issue as well. |
|
What do you see if you try to execute Is the archive downloaded as expected? (It's possible that Packrat instead receives a 403 error page). Replace the above |
|
closing, as I believe this is a duplicate of #442 |
|
@kevinushey I've submitted a pull request that illustrates what's going on and provides a limited fix. The githubDownload function you mentioned is working correctly. The issue was that the Archive URL was hard-coded as |
|
Have you tried using the local_repo option via something like: then in your R script set the local_repo option to point to ~/local_repo: You might also want to make sure that you have all the correct internal IPs in your /etc/hosts file, so that when you attempt to run the bootstrap packrat command from within the docker container, it knows where to pull the packages from. I believe in ours we had to add a line with an IP for both |
I'm using packrat and install_github to pull a specific version of a package from a private github repo:
When I run
I receive:
I've checked the
packrat/directory in the project, and it contains what looks like the repo inBy that, I mean that directory contains
DESCRIPTION, INDEX, NAMESPACE, extdata, help, html, Meta, R, testsfiles or directories.On the other hand,
is empty.
I've checked the
DESCRIPTIONfile inpackrat/lib/x86_64-redhat-linux-gnu/3.4.3/<MY_REPO>and it contains the correct URL for the repo.I've also tried setting the GITHUB_PAT environment variable to <MY_GITHUB_PAT>, but it still fails.
From what I've read, packrat uses the URL in description to find where the file was pulled from, and should be able to work with packages that were installed via devtools::install_github.
Any suggestions for what could be going on? Thanks in advance for your time.
The text was updated successfully, but these errors were encountered: