extendr / rextendr

An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically
https://extendr.github.io/rextendr/
Other
190 stars 28 forks source link

maturin like package build tool for monorepo #284

Open eitsupi opened 1 year ago

eitsupi commented 1 year ago

Currently, the rextendr template is not intended to be used in mono repo. It would be useful if there was a tool that could build R packages in monorepo, like maturin used to build python packages.

When maturin builds the source distribution of a Python package, it moves the local dependencies to a directory named local_dependencies. https://github.com/PyO3/maturin/blob/f2279cd97a917acd5c5f06cfb3dddf8fd23f5944/src/source_distribution.rs

For example, see the difference between the following GitHub repository of minijnja and the source distribution of the minijinja Python package. https://github.com/mitsuhiko/minijinja/tree/0.32.0/minijinja-py https://files.pythonhosted.org/packages/3f/77/6e23924f7bd4b1ec38e56f7834a47f921ef94b9ccf173768b9a09dd0cf33/minijinja-0.32.0.tar.gz

eitsupi commented 1 year ago

This pkgbuild's new feature maybe able to used for this. (r-lib/pkgbuild#157)

JosiahParry commented 6 months ago

I think this would be very helpful for https://github.com/nptscot/rnetmatch