For developers only: get the full definition of the
target currently running. This target definition is the same kind
of object produced by
tar_definition( default = targets::tar_target_raw("target_name", quote(identity())) )
Environment, value to return if
If called from a running target,
the target object of the currently running target.
See the "Target objects" section for details.
Most users should not use
tar_definition() because accidental
modifications could break the pipeline.
tar_definition() only exists in order to support third-party interface
packages, and even then the returned target definition is not modified..
tar_target() produce target objects,
special objects with specialized sets of S3 classes.
Target objects represent skippable steps of the analysis pipeline
as described at https://books.ropensci.org/targets/.
Please read the walkthrough at
to understand the role of target objects in analysis pipelines.
For developers, https://wlandau.github.io/targetopia/contributing.html#target-factories explains target factories (functions like this one which generate targets) and the design specification at https://books.ropensci.org/targets-design/ details the structure and composition of target objects.
class(tar_definition())#>  "tar_stem" "tar_builder" "tar_target" "environment"tar_definition()$settings$name#>  "target_name"