Does install_github recursively install dependencies?

谁说我不能喝 提交于 2019-12-23 08:00:11

问题


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

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.

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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/38425529/does-install-github-recursively-install-dependencies

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!