This is my first post here. Apologies if I am breaking any rule.
I am the maintainer of the xtensor package on CRAN. xtensor is a tool for manipulating N-D arrays with a high-level API in C++. It also has bindings to Python and Julia.
- The CRAN package for xtensor vendors the headers of
xtensor-r, and its other dependencies
- The tarball uploaded to CRAN is built from the source repository with a special cmake target.
make cranproduces the tarball that we submit to CRAN. Having such a build step allows us to not include dependencies in the repository, or the files generated by Rcpp.
Now we would like to improve this in several ways
- separate the R package repository from the
xtensor-rpure C++ repository (started here https://github.com/QuantStack/Xtensor.R), and probably drop cmake and use something else to generate the tarball with all the vendoring.
- this new R package should be installable from GitHub with devtools, but ideally not vendor xtensor-r, xtensor, xtl in the repository.
- package it for conda, in a way that does not vendor xtensor-r, xtensor, xtl. The conda package will simply depend on the conda packages for xtensor-r, xtensor and xtl which already exist.
Hence comes the questions: is there a means to perform custom actions upon
R CMD build? (such as fetching resources to be vendored with the package), and to add custom options to the command? (such as --no-vendoring)