-
Notifications
You must be signed in to change notification settings - Fork 38
Description
I would love for the bootstrap.R to be called from within the copied directory.
I have the following in my DESCRIPTION file:
Config/build/bootstrap: TRUE
Config/build/copy-method: copy
The use case is building a Rust-based R package from within a workspace (see branch for structure https://github.com/JosiahParry/anime/tree/feat/workspace).
The bootstrap.R copies the workspace directories into the R package's src. However, doing this locally causes the changes to persist.
Adding a cleanup doesn't work because it gets called after R CMD BUILD but the changes are needed for R CMD INSTALL so using devtools::install() with a cleanup causes the bootstrap.R to run and then clean itself up and then failing to install.
Do you have a suggestion for how to accomplish this? In my ideal scenario bootstrap.R gets called from within the temp directory created by the copy-method.