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

问题描述

我的连接可能存在一些问题(某些块,不知道),我无法直接安装来安装使用 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软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 07:29