从github下载master.zip安装R软件包 [英] Instal R packages from github downloading master.zip

查看:1535
本文介绍了从github下载master.zip安装R软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的连接可能存在一些问题(某些块,不知道),我无法直接安装 gitHub

 > install_github(assertthat)
从hadley安装github repo(s)assertthat / master
从https://github.com/hadley/assertthat/archive/master.zip安装assertthat.zip

我尝试了很多其他软件包,结果相同。但是,我可以从浏览器下载 master.zip 。你能否告诉我们是否可以直接安装 .zip ?谢谢。

解决方案

这个答案只是我评论的精炼版本。从本质上讲,你可以通过解压从github下载的本地zipfile,然后运行 install 函数来安装使用 devtools p>


install(path / to / unzipped_pkg_zip_file)



最新的开发版本 devtools 包含一个 install_local 实用程序函数,直接使用本地zip文件。


I probably have some issues in my connectivity (some sort of blocks, dunno) and I can't install directly form 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. Can you tell if it's possible install directly the .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

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.

这篇关于从github下载master.zip安装R软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆