Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add select function to select parts of the pipeline #27

Open
rpahl opened this issue Jan 3, 2025 · 0 comments
Open

add select function to select parts of the pipeline #27

rpahl opened this issue Jan 3, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rpahl
Copy link
Owner

rpahl commented Jan 3, 2025

The operation should support

  • select by position: pip$select(1:14) and pip$select(1, 3, 10)
  • select by step names: pip$select("data", "data_rep", "model_fit")
  • select by range of step names: pip$select(data:model_fit) or pip$select("data":"model_fit")
  • negative selection by position: pip$select(-5, -7) or pip$select(c(-5, -7)) or pip$select(-(5:7))
  • negative selection by names: pip$select(-"data", -"data_prep") or pip$select(-c("data", "data_prep")) or pip$select(-("data":"data_prep"))

The select function probably will have two additional args, i.e. the signature will be something like
select <- function(..., .upDeps = TRUE, .downDeps = TRUE)
which by default will select the steps given by the user plus all up- and down-stream dependencies. Then,
if .upDeps == FALSE, the function will throw if upstream dependencies are missing, while
if .downDeps == FALSE it will just provide a message about the dropped downstream dependencies.

@rpahl rpahl added the enhancement New feature or request label Jan 3, 2025
@rpahl rpahl self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant