## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----setup-------------------------------------------------------------------- library(nlmixr2targets) ## ----examples-of-edits, eval = FALSE------------------------------------------ # # Adding a comment, changing a label, or editing meta: # # only re-runs the cheap `_object_simple` and the final `` target # # (the relabel/meta-restore step). The expensive `_fit_simple` is reused. # # # Changing initial values (`ini({...})`) or the model structure # # (`model({...})`): # # re-runs everything from `_object_simple` onward. # # # Adding/removing a covariate column from the dataset: # # re-runs `_data_simple` and `_fit_simple`. `_object_simple` is reused # # if the model didn't change. # # # Changing `est` or `control`: # # re-runs `_fit_simple` and the final target. `_object_simple` and # # `_data_simple` are reused. ## ----cache-helpers, eval = FALSE---------------------------------------------- # # Quick inventory: hashes, sizes, last-modified # nlmixr2targets_cache_status() # #> hash size_bytes mtime # #> 1 aaaaaa.. 1234 2026-05-21 12:00:00 # #> 2 bbbbbb.. 1567 2026-05-21 13:30:00 # # # Find orphans (dry run by default) # nlmixr2targets_cache_prune() # # # Delete them # nlmixr2targets_cache_prune(dry_run = FALSE) ## ----tar-outdated, eval = FALSE----------------------------------------------- # targets::tar_outdated()