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

问题描述

我的连接性可能有一些问题(某种障碍,不知道),我无法直接从gitHub

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

我尝试了许多其他软件包,结果相同.但是,我可以从浏览器下载master.zip.您能否确定是否可以直接安装.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.

推荐答案

此答案只是我评论的提炼版本.本质上,您可以使用devtools安装软件包,方法是解压缩从github下载的本地zipfile,然后运行install函数

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

install("path/to/unzipped_pkg_zip_file")

devtools的最新开发版本包含install_local实用程序功能,可轻松直接使用本地zip文件.

The latest dev version of devtools contains an install_local utility function that makes it easy to work directly with local zip files.

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

10-18 13:36