Skip to content

Commit ec0d405

Browse files
fix one debug regression
1 parent 436ba7e commit ec0d405

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/BatchtoolsFuture-class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ await <- function(future, cleanup = TRUE,
659659

660660
result <- NULL
661661
if (finished) {
662-
mdebug("Results:")
662+
if (debug) mdebug("Results:")
663663
label <- sQuoteLabel(future)
664664
if ("finished" %in% stat) {
665665
result <- local({

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.onLoad <- function(libname, pkgname) {
33
import_future_functions()
44

5-
debug <- getOption("future.debug", FALSE)
5+
debug <- isTRUE(getOption("future.debug"))
66

77
inRCmdCheck <- import_parallelly("inRCmdCheck")
88
if (inRCmdCheck()) {

0 commit comments

Comments
 (0)