install_github是否递归安装依赖项? [英] Does install_github recursively install dependencies?

查看:103
本文介绍了install_github是否递归安装依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

R包 devtools 似乎是使用 install_github()函数。

The R package devtools seems the method of choice for installing R packages directly from their github repository, using the install_github() function.

这样做,不仅安装了寻址的github-package,而且还安装了其直接的CRAN依赖关系,即Description / Namespace中定义的Depends和Imports软件包的文件。

While doing so, not only the addressed github-package is installed, but also its direct CRAN-dependencies, i.e., the Depends and Imports as defined in the Description/Namespace files of the package.

但是,我想知道间接需要的软件包(例如Depends和Imports软件包所需的软件包)是否也会自动安装。

However, I am wondering if indirectly required packages such as those in turn required by the Depends and Imports packages become automatically installed along, too.

例如,通过 install_github( rstudio / DT安装 DT 软件包时),还安装了导入包 htmltools (设置 dependencies = TRUE ),但是而不是前者所依赖的 Rcpp 软件包(R 3.3.1,Rtools34,Win10,x64)。此类软件包是否需要以其他方式安装?

For example, when installing the DT package via install_github("rstudio/DT"), the Imports package htmltools is also installed (set dependencies=TRUE), but not the Rcpp package, on which the former depends (R 3.3.1, Rtools34, Win10, x64). Do such packages need to be installed in another way?

推荐答案

对于 devtools> 1.12.0 的问题已解决在github上可用。很好,可以使用 devtools 通过 install_github( hadley / devtools)安装这样的版本。对于Windows,问题似乎仅限于 R> = 3.3.0

Bug problem solved for devtools >1.12.0, as available on github. Nicely, one can install such a version via install_github("hadley/devtools"), using devtools. Problem seems restricted to R>=3.3.0 for Windows.

这篇关于install_github是否递归安装依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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