Skip to content

Commit

Permalink
Add option 'future.plan.cleanup.legacy' for a while [#719]
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed May 30, 2024
1 parent 74ebf91 commit 8dbc510
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: future
Version: 1.33.2-9006
Version: 1.33.2-9007
Title: Unified Parallel and Distributed Processing in R for Everyone
Imports:
digest,
Expand Down
3 changes: 3 additions & 0 deletions R/options.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,7 @@ update_package_options <- function(debug = FALSE) {
## SETTINGS USED FOR DEPRECATING FEATURES
## future 1.22.0:
update_package_option("future.globals.keepWhere", mode = "logical", debug = debug)

## future 1.34.0:
update_package_option("future.plan.cleanup.legacy", mode = "logical", debug = debug)
}
4 changes: 3 additions & 1 deletion R/zzz.plan.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ plan <- local({
}
} else {
## Backward compatibility for future (<= 1.33.2)
## ClusterRegistry(action = "stop")
if (getOption("future.plan.cleanup.legacy", FALSE)) {
ClusterRegistry(action = "stop")
}
}
} ## plan_cleanup()

Expand Down
2 changes: 1 addition & 1 deletion vignettes/future-8-how-future-is-validated.md.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ of the _Future API_ and the future ecosystem at large.
[revdepcheck]: https://github.com/r-lib/revdepcheck

[GitHub Actions]: https://github.com/features/actions
[R-hub]: https://builder.r-hub.io/
[R-hub]: https://r-hub.github.io/rhub/

0 comments on commit 8dbc510

Please sign in to comment.