tests/testthat/examples/depends-query/depends-query.R

pars <- orderly::orderly_parameters(a = NULL, b = NULL, c = NULL)

value <- pars$c
orderly::orderly_dependency(
  "parameters",
  paste("latest(parameter:a == this:a &&",
        "parameter:b == this:b &&",
        "parameter:c == environment:value)"),
  c(input.rds = "data.rds"))
orderly::orderly_artefact("result.rds", description = "Processed data")
d <- readRDS("input.rds")
saveRDS(lapply(d, function(x) x * 2), "result.rds")

Try the orderly package in your browser

Any scripts or data that you put into this service are public.

orderly documentation built on Jan. 24, 2026, 1:07 a.m.