Skip to content

Commit cac629f

Browse files
values() -> value() since the former is about to get deprecated [ci skip]
1 parent 1d7d069 commit cac629f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/batchtools_custom.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ x <- listenv()
6464
for (ii in 1:2) {
6565
x[[ii]] <- batchtools_custom({ ii }, globals = TRUE, cluster.functions = cf)
6666
}
67-
v <- unlist(values(x))
67+
v <- unlist(value(x))
6868
stopifnot(all(v == 1:2)) ## Make sure globals are frozen
6969

7070

tests/batchtools_interactive.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ stopifnot(v == 0)
4545
message("*** batchtools_interactive() with globals (tricky)")
4646
x <- listenv()
4747
for (ii in 1:2) x[[ii]] <- batchtools_interactive({ ii }, globals = TRUE)
48-
v <- unlist(values(x))
48+
v <- unlist(value(x))
4949
stopifnot(all(v == 1:2)) ## Make sure globals are frozen
5050

5151

tests/batchtools_local.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ stopifnot(v == 0)
4545
message("*** batchtools_local() with globals (tricky)")
4646
x <- listenv()
4747
for (ii in 1:2) x[[ii]] <- batchtools_local({ ii }, globals = TRUE)
48-
v <- unlist(values(x))
48+
v <- unlist(value(x))
4949
stopifnot(all(v == 1:2)) ## Make sure globals are frozen
5050

5151

tests/batchtools_multicore.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ for (cores in 1:min(2L, availableCores("multicore"))) {
6969
}
7070
mprintf(" - Resolving %d batchtools_multicore futures\n", length(x))
7171
if (globals || f$config$reg$cluster.functions$name == "Multicore") {
72-
v <- unlist(values(x))
72+
v <- unlist(value(x))
7373
stopifnot(all(v == 1:2))
7474
} else {
7575
v <- lapply(x, FUN = function(f) tryCatch(value(f), error = identity))

0 commit comments

Comments
 (0)