2626# ' @keywords internal
2727signalConditions <- function (future , include = " condition" , exclude = NULL , resignal = TRUE , ... ) {
2828 # # Nothing to do?
29- if (length(include ) == 0L ) return (invisible ( future ) )
29+ if (length(include ) == 0L ) return (future )
3030
3131 # # Future is not yet launched
3232 if (! future [[" state" ]] %in% c(" finished" , " failed" , " interrupted" )) {
@@ -43,7 +43,7 @@ signalConditions <- function(future, include = "condition", exclude = NULL, resi
4343 conditions <- result [[" conditions" ]]
4444
4545 # # Nothing to do
46- if (length(conditions ) == 0 ) return (invisible ( future ) )
46+ if (length(conditions ) == 0 ) return (future )
4747
4848 debug <- isTRUE(getOption(" future.debug" ))
4949
@@ -109,7 +109,7 @@ signalConditions <- function(future, include = "condition", exclude = NULL, resi
109109 future <- resetFuture(backend , future )
110110 }
111111 warning(FutureInterruptWarning(msg , future = future ))
112- return (invisible ( future ) )
112+ return (future )
113113 } else if (inherits(condition , " warning" )) {
114114 warning(condition )
115115 } else if (inherits(condition , " message" )) {
@@ -131,7 +131,7 @@ signalConditions <- function(future, include = "condition", exclude = NULL, resi
131131 result [[" conditions" ]] <- conditions
132132 future [[" result" ]] <- result
133133
134- invisible ( future )
134+ future
135135}
136136
137137
@@ -145,7 +145,7 @@ signalImmediateConditions <- function(future, include = NULL, resignal = FALSE,
145145 if (is.null(include )) include <- " immediateCondition"
146146 }
147147 }
148- if (length(include ) == 0L ) return (invisible ( future ) )
148+ if (length(include ) == 0L ) return (future )
149149 signalConditions(future , include = include , resignal = resignal , ... )
150150}
151151
@@ -284,5 +284,5 @@ muffleCondition <- function(cond, pattern = "^muffle") {
284284 }
285285 }
286286
287- invisible ( muffled )
287+ muffled
288288} # # muffleCondition()
0 commit comments