Skip to content

Commit 3c456dc

Browse files
CLEANUP: Bump pkg dependency on future
1 parent 335b9c6 commit 3c456dc

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: future.batchtools
22
Version: 0.7.2-9000
33
Depends:
44
R (>= 3.2.0),
5-
future (>= 1.10.0)
5+
future (>= 1.11.0)
66
Imports:
77
batchtools (>= 0.9.8)
88
Suggests:

R/utils.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ tempvar <- function(prefix = "var", value = NA, envir = parent.frame()) {
176176
result_has_errors <- function(result) {
177177
stop_if_not(inherits(result, "FutureResult"))
178178

179-
## BACKWARD COMPATIBILITY: future (< 1.11.0)
180-
if (inherits(result$condition, "error")) return(TRUE)
181-
182179
for (c in result$conditions) {
183180
if (inherits(c$condition, "error")) return(TRUE)
184181
}

tests/BatchtoolsFuture.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ message("*** BatchtoolsFuture() - cleanup ...")
77
f <- batchtools_local({ 1L })
88
res <- await(f, cleanup = TRUE)
99
print(res)
10-
# future (>= 1.7.0-9000)
11-
if (inherits(res, "FutureResult")) res <- res$value
12-
stopifnot(res == 1L)
10+
stopifnot(res$value == 1L)
1311

1412
message("*** BatchtoolsFuture() - cleanup ... DONE")
1513

0 commit comments

Comments
 (0)