metrumresearchgroup / bbr

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

update_model_id: work with child models in sub-directories #614

Closed barrettk closed 11 months ago

barrettk commented 11 months ago

Previously, update_model_id would replace the id with the based_on field, which was actually a relative path rather than a model id. In other words, this function did not support child models created in sub-directories (or otherwise a different directory than the parent model). This PR addresses that by capturing the id of the parent model instead of the path. See referenced issue for more details.

closes https://github.com/metrumresearchgroup/bbr/issues/611