rstudio / rstudio/packrat

install_github() with github enterprise

Open
#180 2 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.