简体   繁体   English

如何从Google代码和/或launchpad.net安装R包的开发版本?

[英]How to install a development version of R package from google code and/or launchpad.net?

Some development versions of R packages are hosted on google code and/or launchpad.net. R程序包的某些开发版本托管在Google代码和/或launchpad.net上。

Is it possible to install the newest release of these packages directly from google code and/or launchpad.net as from other repositories? 是否可以直接从Google代码和/或launchpad.net和其他存储库安装这些软件包的最新版本?

ie. 即。 not downloading the source from the site through a browser and then attempting to install the source 不要通过浏览器从站点下载源,然后尝试安装源

If so, how? 如果是这样,怎么办?

The package I wish to install is "igraph". 我要安装的软件包是“ igraph”。

The development version of this package seems to be hosted at: 该软件包的开发版本似乎位于:

http://code.google.com/p/igraph/downloads/list http://code.google.com/p/igraph/downloads/list
and
https://code.launchpad.net/~igraph/igraph/0.6-main https://code.launchpad.net/~igraph/igraph/0.6-main

As a bonus, is it possible to do the same for packages hosted on sourceforge.net? 另外,是否可以对sourceforge.net上托管的软件包执行相同的操作?

PS: I believe this is different enough from my past question to warrant a separate question: How to install development version of R packages github repository PS:我认为这与我过去的问题足够不同,可以提出一个单独的问题: 如何安装R包github库的开发版本

除非开发人员为您的特定系统(OS和R版本)提供了预先构建的二进制文件,否则您必须从源代码进行构建。

使用devtools软件包,有一个install_url函数,该函数将自动执行下载源代码,构建软件包并安装的过程。

install_url("http://igraph.googlecode.com/files/igraph_nightly_0.6-2689-20120412.tar.gz")

To not download source requires someone to build the binary for you. 下载源代码需要有人为您构建二进制文件。 That only happens for CRAN, R-Forge and RForge.net packages, so you are out of luck. 这仅适用于CRAN,R-Forge和RForge.net软件包,因此您很不走运。

Installing from source is the way to go. 从源代码安装是必经之路。

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

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