Skip to content

Commit

Permalink
Merge pull request #199 from mrc-ide/fix-dependency-environment
Browse files Browse the repository at this point in the history
Support `environment:` from an interactive session.
  • Loading branch information
plietar authored Nov 15, 2024
2 parents 9eebaad + 8f69baa commit fb87926
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: orderly2
Title: Orderly Next Generation
Version: 1.99.55
Version: 1.99.56
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Robert", "Ashton", role = "aut"),
Expand Down
1 change: 1 addition & 0 deletions R/outpack_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ orderly_copy_files <- function(expr, files, dest, overwrite = TRUE,
location = options$location,
allow_remote = options$allow_remote,
fetch_metadata = options$fetch_metadata,
envir = envir,
root = root)
if (length(id) > 1) {
cli::cli_abort(
Expand Down
4 changes: 3 additions & 1 deletion tests/testthat/examples/depends-query/depends-query.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
orderly2::orderly_parameters(a = NULL, b = NULL, c = NULL)

value <- c
orderly2::orderly_dependency(
"parameters",
paste("latest(parameter:a == this:a &&",
"parameter:b == this:b &&",
"parameter:c == this:c)"),
"parameter:c == environment:value)"),
c(input.rds = "data.rds"))
orderly2::orderly_artefact("result.rds", description = "Processed data")
d <- readRDS("input.rds")
Expand Down

0 comments on commit fb87926

Please sign in to comment.