Archived
1
0
Fork
You've already forked pipeline
0

RFC: allow branching/split output + syntax considerations #5

Open
opened 2025年09月30日 17:01:07 +02:00 by TimTaylor · 1 comment

Targets has static and dynamic branching do we want something similar here?

If so, then what should the syntax be. Current thinking would be

pipeline({
 a <- load_dat(CONFIG$data)
 b[] <- dothing(a)
 c <- MAP(b, somefun)
 d <- use_all_of(b)
})
  • Here b[] means that we are expecting a list output and each element will be saved in a separate b_id object in the cache.
  • We would need a special MAP() function when applying to each element of b and it would need to handle mapping across multiple variables.
  • Where MAP() is not used input would be recombined back in to a list. Would this be element-wise?
Targets has static and dynamic branching do we want something similar here? If so, then what should the syntax be. Current thinking would be ```R pipeline({ a <- load_dat(CONFIG$data) b[] <- dothing(a) c <- MAP(b, somefun) d <- use_all_of(b) }) ``` - Here `b[]` means that we are expecting a list output and each element will be saved in a separate `b_id` object in the cache. - We would need a special `MAP()` function when applying to each element of b and it would need to handle mapping across multiple variables. - Where `MAP()` is not used input would be recombined back in to a list. Would this be element-wise?
TimTaylor added this to the (deleted) project 2025年09月30日 17:01:19 +02:00
Author
Owner
Copy link

Related to #3

Related to #3
Commenting is not possible because the repository is archived.
No Branch/Tag specified
main
hackathon
pages
no-scenarios
seed-handling
constants
fix
attach
refactor
asis
v0.0.0.9165
v0.0.0.9164
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TimTaylor/pipeline#5
Reference in a new issue
TimTaylor/pipeline
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?