简体   繁体   English

从github下载master.zip安装R包

[英]Install R packages from github downloading master.zip

I probably have some issues in my connectivity (some sort of blocks, I don't know) and I can't install directly form gitHub我的连接可能有一些问题(某种块,我不知道)并且我无法直接从gitHub安装

> install_github("assertthat")
Installing github repo(s) assertthat/master from hadley
Installing assertthat.zip from https://github.com/hadley/assertthat/archive/master.zip

I tried with lots of other packages, same result.我尝试了很多其他软件包,结果相同。 However, I am able to download master.zip form the browser.但是,我可以从浏览器下载master.zip Can you tell if it's possible install directly the .zip ?你能告诉我是否可以直接安装.zip吗? thanks.谢谢。

This answer is just a refined version of my comments.这个答案只是我评论的精炼版本。 Essentially you can install packages using devtools by unzipping a local zipfile downloaded from github, and then running the install function本质上,您可以通过解压缩从 github 下载的本地 zip 文件,然后运行install功能,使用devtools安装软件包

install("path/to/unzipped_pkg_zip_file")

The latest dev version of devtools contains an install_local utility function that makes it easy to work directly with local zip files. devtools的最新开发版本包含一个install_local实用程序函数,可以轻松地直接使用本地 zip 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM