Skip to content

bootstrap in temp dir #220

@JosiahParry

Description

@JosiahParry

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions