hadley/devtools — Issue #64: Enable install_github to specify a subdir of github repo to use as package root
Author: lianos
Created: 2012-02-20 20:47:47+00:00
State: open

Currently, `install_github` assumes the that the repository named in the params served as the root of the R package.

Adding support for a packge that looks like so would be helpful:

+ my-uber-project
`- C/
| + C src files that are the core of my library
`- Python/
| +- Python language bindings
`- R/
+- DESCRIPTION
+- NAMESPACE
+- R/
+- src/
...

Imagine that the `R` subfolder of `my-uber-project` repository is CRAN-stallable binding/part/whatever of `my-uber-project`.

You can imagine calling install_github something like:

install_github('my-uber-package', 'lianos', subdir=c('R''))

Where `subdir` might support a character vector, eg. c('path', 'to', 'subfolder', 'with', 'R-pkg').