Does the model list refer to another model in the model list?
tar_nlmixr_multimodel_has_self_reference.Rd
Does the model list refer to another model in the model list?
Usage
tar_nlmixr_multimodel_has_self_reference(model_list, name)
tar_nlmixr_multimodel_has_self_reference_single(model, name)
Arguments
- model_list
A named list of calls for model targets to be created
- name
Symbol, name of the target. A target name must be a valid name for a symbol in R, and it must not start with a dot. Subsequent targets can refer to this name symbolically to induce a dependency relationship: e.g.
tar_target(downstream_target, f(upstream_target))
is a target nameddownstream_target
which depends on a targetupstream_target
and a functionf()
. In addition, a target's name determines its random number generator seed. In this way, each target runs with a reproducible seed so someone else running the same pipeline should get the same results, and no two targets in the same pipeline share the same seed. (Even dynamic branches have different names and thus different seeds.) You can recover the seed of a completed target withtar_meta(your_target, seed)
and runtar_seed_set()
on the result to locally recreate the target's initial RNG state.- model
A single model call for the model target to be created