DOI-USGS / ds-pipelines-targets-3-course

Many-task pipelines using targets
Other
4 stars 6 forks source link

Debugging dynamic branches in a pipeline #17

Open padilla410 opened 2 years ago

padilla410 commented 2 years ago

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.