Question

As of today I can not use devtools to install a package from GitHub. I don't know if the error lies in:

  1. Me
  2. devtools
  3. GitHub

I'm using install_github as follows and get the following error:

library(devtools)
install_github("reports", "trinker")

## > library(devtools)
## > install_github("reports", "trinker")
## Installing github repo(s) reports/master from trinker
## Installing reports.zip from https://github.com/trinker/reports/archive/master.zip
## Error in function (type, msg, asError = TRUE)  : 
##   transfer closed with outstanding read data remaining
##
## TRIED WITH SECOND REPO:
##
## > install_github("acc.roxygen2", "trinker")
## Installing github repo(s) acc.roxygen2/master from trinker
## Installing acc.roxygen2.zip from https://github.com/trinker/acc.roxygen2/archive/master.zip
## Error in function (type, msg, asError = TRUE)  : 
##   transfer closed with outstanding read data remaining

I tried this with a second repo and get the same error. I know that other similar errors are related to security certificate.

Here's my github repo https://github.com/trinker/reports

I can't seem to download and install either. I can install the tar.gz file produced by an R build though.

Where is the error occurring and why is it occurring?

PS I can install for other people's github:

library(devtools)
install_github("findPackage", "Dasonk")

EDIT

I can install my own qdap as well:

library(devtools)
install_github("qdap", "trinker")
Was it helpful?

Solution

This appears to be a problem with your repo. install_github grabs the .zip file associated with your repository. For some reason yours seems to be an empty .zip file so clearly it can't install.

The tarball doesn't seem to be empty. My guess is that it's just a hiccup in github that should go away with time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top