rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
401 stars 89 forks source link

install_github() with github enterprise #180

Open Mullefa opened 9 years ago

Mullefa commented 9 years ago

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
kevinushey commented 9 years ago

This might be difficult to honour in Packrat. Is there any information the in the pacakge's DESCRIPTION file that says the package lives in a GitHub enterprise account?

I think this could be implemented; we might just have to add e.g. devtools as a Suggests: dependency, and use methods from devtools to download tarballs from GH Enterprise when appropriate.

vsteff commented 6 years ago

Did you solve this issue? I'm having the same problem.