Debugging dynamic branches is an important skill for pipelines that can have problematic inputs. For example, in the WQP targets pipeline there are checks for bad station id names, but some wacky names still make it through.
Debugging dynamic pipelines requires using the debug option in tar_option_set, restarting R, running tar_make(callr_function = NULL) in the console, and then hitting the "step into current function call" to drop into the debugger.
We should consider adding this tidbit into targets-3 or adding it to a targets-4 training series.
Debugging dynamic branches is an important skill for pipelines that can have problematic inputs. For example, in the WQP targets pipeline there are checks for bad station id names, but some wacky names still make it through.
Debugging dynamic pipelines requires using the debug option in
tar_option_set
, restarting R, runningtar_make(callr_function = NULL)
in the console, and then hitting the "step into current function call" to drop into the debugger.We should consider adding this tidbit into
targets-3
or adding it to atargets-4
training series.