Skip to content

Commit 7aa34f5

Browse files
ROBUSTNESS: Don't signal errors in print()
1 parent ab0d03b commit 7aa34f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/BatchtoolsFuture-class.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ print.BatchtoolsFuture <- function(x, ...) {
133133
class(reg))
134134
} else {
135135
printf("batchtools Registry:\n ")
136-
print(reg)
137136
printf(" File dir exists: %s\n", file_test("-d", reg$file.dir))
138137
printf(" Work dir exists: %s\n", file_test("-d", reg$work.dir))
138+
try(print(reg))
139139
}
140140

141141
invisible(x)
@@ -305,6 +305,7 @@ result.BatchtoolsFuture <- function(future, cleanup = TRUE, ...) {
305305
stop_if_not(inherits(result, "FutureResult"))
306306
future$result <- result
307307
future$state <- "finished"
308+
308309
if (cleanup) delete(future)
309310

310311
NextMethod()

0 commit comments

Comments
 (0)