install_github() with github enterprise
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
Packrat throws an error for packages installed with enterprise github. For example, I have a package - db2lls - on my company github to facilitate working with RJDBC.
I can install this from within a packrat project:
devtools::install_github("guy.dawson/db2lls", host = "github.<company>.com/api/v3")
However, when trying to take a snapshot, I get the following error:
packrat::snapshot()
# Fetching sources for db2lls (1.3.1) ... Error in snapshotSources(project, activeRepos(project), allRecordsFlat) :
# Errors occurred when fetching source files:
# Error in untar2(tarfile, files, list, exdir, restore_times) :
# incomplete block on file
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with devtools::install_github() against the enterprise GitHub host, then run packrat::snapshot(). Start by tracing snapshotSources() and the source-fetching path around the reported untar2() error. Done means the enterprise-hosted package source can be fetched and snapshot completes without the incomplete-block error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100