Skip to content
Discussion options

You must be logged in to vote

Yes, I've been doing this too, though this requires repetition of mutate(set = NAME) in many lines of tar_plan().

Hooks like tarchetypes::tar_hook_outer() can add commands in bulk, and tarchetypes::tar_map() can condense even more repetition than that.

I'm guessing there is no simple an elegant way of putting tar_combine() in a function as in my attempts?

It's possible, but the metaprogramming is usually not worth the trouble.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Answer selected by MarekGierlinski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants