devtools/GitHub download error

雨燕双飞 提交于 2019-12-20 01:36:35

问题


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")

回答1:


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.



来源:https://stackoverflow.com/questions/16282003/devtools-github-download-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!