Best Practice for Pipelines On Top of Packages #1229
-
Prework
ProposalI am curious what the recommended best-practice is for utilizing targets with a workflow/pipeline style package. I have a project in development that (1) downloads, (2) processes, (3) models, (4) post-process, (5) checks for new data,(6) rinse and repeat. So, targets is a natural fit for the pipeline, but I am not sure where it fits in the package. My ideas are:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I have found it easiest to have at least some separation. Maybe the package implements the kinds of functions that each target calls, and maybe the package even writes a |
Beta Was this translation helpful? Give feedback.
I have found it easiest to have at least some separation. Maybe the package implements the kinds of functions that each target calls, and maybe the package even writes a
_targets.R
file. But then the actual instance of_targets.R
and any scripts sourced from_targets.R
are best to put in a separate project outside the source code of your package. https://books.ropensci.org/targets/packages.html might help too.