Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does install_github recursively install dependencies?

Tags:

r

devtools

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?

like image 776
martin Avatar asked Jul 17 '16 20:07

martin


People also ask

What is Install_github?

install_github allows users to install R packages hosted on GitHub without needing to install or load the heavy dependencies required by devtools. ghit provides a drop-in replacement that provides (almost) identical functionality to devtools::install_github() .


1 Answers

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.

like image 122
martin Avatar answered Sep 20 '22 23:09

martin