metrumresearchgroup / bbr

R interface for model and project management
https://metrumresearchgroup.github.io/bbr/
Other
21 stars 2 forks source link

Patch: Overwrite bootstrap RDS and OUTPUT #696

Closed seth127 closed 1 month ago

seth127 commented 1 month ago

When overwriting existing bootstrap output directories, we should also be deleting the OUTPUT log file associated with them, as well as any boot_summary.RDS that we created from them.

The boot_summary.RDS is especially important, because, if this is retained, it will be read in when the user calls summarize_bootstrap_run() on their re-run.

barrettk commented 1 month ago

Local tests pass as of latest commit:

> devtools::test(filter = "boot")
ℹ Testing bbr
✔ | F W  S  OK | Context
✔ |         76 | testing bootstrap functionality and running bbi [158.3s]                                                                                    

══ Results ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
Duration: 158.3 s

[ FAIL 0 | WARN 0 | SKIP 0 | PASS 76 ]