Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions R/CallrFutureBackend-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,11 @@ await <- function(future, ...) {

## Finalize the 'callr' process, which includes remove any temporary
## files that it created
process$finalize()
if (is.function(process$cleanup)) {
process$cleanup()
} else {
process$finalize()
}
}

## Failed to launch?
Expand Down Expand Up @@ -538,8 +542,12 @@ await <- function(future, ...) {

## Finalize the 'callr' process, which includes remove any temporary
## files that it created
process$finalize()

if (is.function(process$cleanup)) {
process$cleanup()
} else {
process$finalize()
}

result
} # await()

Expand Down
Loading