Skip to content

Commit

Permalink
Merge branch 'develop' into feature/evalFuture
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Jan 1, 2025
2 parents e7de4bb + ad85fb7 commit 5e982a8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 28 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.34.0-9105
Version: 1.34.0-9106
Title: Unified Parallel and Distributed Processing in R for Everyone
Imports:
digest,
Expand Down
7 changes: 1 addition & 6 deletions R/MultisessionFuture-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@
#'
#' @export
#' @rdname ClusterFuture-class
MultisessionFuture <- function(expr = NULL, substitute = TRUE, envir = parent.frame(), persistent = FALSE, workers = NULL, ...) {
MultisessionFuture <- function(expr = NULL, substitute = TRUE, envir = parent.frame(), workers = NULL, ...) {
if (substitute) expr <- substitute(expr)

## Defunct argument 'persistent'?
if (!is.null(list(...)$persistent)) {
.Defunct(msg = "Use of argument 'persistent' with multisession futures is defunct.", package = .packageName)
}

future <- ClusterFuture(expr = expr, substitute = FALSE, envir = envir, workers = workers, ...)
future <- structure(future, class = c("MultisessionFuture", class(future)))
future
Expand Down
20 changes: 0 additions & 20 deletions R/resolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ resolve.default <- function(x, ...) x

#' @export
resolve.Future <- function(x, idxs = NULL, recursive = 0, result = FALSE, stdout = FALSE, signal = FALSE, force = FALSE, sleep = getOption("future.wait.interval", 0.01), ...) {
## BACKWARD COMPATIBILITY
if (missing(result) && "value" %in% names(list(...))) {
.Defunct(msg = "Argument 'value' of resolve() is defunct. It was deprecated in future (>= 1.15.0) [2019-11-07]. Use 'result' instead.", package = .packageName)
}

## Automatically update journal entries for Future object
if (inherits(future, "Future") &&
inherits(future$.journal, "FutureJournal")) {
Expand Down Expand Up @@ -134,11 +129,6 @@ resolve.Future <- function(x, idxs = NULL, recursive = 0, result = FALSE, stdout

#' @export
resolve.list <- function(x, idxs = NULL, recursive = 0, result = FALSE, stdout = FALSE, signal = FALSE, force = FALSE, sleep = getOption("future.wait.interval", 0.01), ...) {
## BACKWARD COMPATIBILITY
if (missing(result) && "value" %in% names(list(...))) {
.Defunct(msg = "Argument 'value' of resolve() is defunct. It was deprecated in future (>= 1.15.0) [2019-11-07]. Use 'result' instead.", package = .packageName)
}

if (is.logical(recursive)) {
if (recursive) recursive <- getOption("future.resolve.recursive", 99)
}
Expand Down Expand Up @@ -262,11 +252,6 @@ resolve.list <- function(x, idxs = NULL, recursive = 0, result = FALSE, stdout =

#' @export
resolve.environment <- function(x, idxs = NULL, recursive = 0, result = FALSE, stdout = FALSE, signal = FALSE, force = FALSE, sleep = getOption("future.wait.interval", 0.01), ...) {
## BACKWARD COMPATIBILITY
if (missing(result) && "value" %in% names(list(...))) {
.Defunct(msg = "Argument 'value' of resolve() is defunct. It was deprecated in future (>= 1.15.0) [2019-11-07]. Use 'result' instead.", package = .packageName)
}

if (is.logical(recursive)) {
if (recursive) recursive <- getOption("future.resolve.recursive", 99)
}
Expand Down Expand Up @@ -385,11 +370,6 @@ resolve.environment <- function(x, idxs = NULL, recursive = 0, result = FALSE, s

#' @export
resolve.listenv <- function(x, idxs = NULL, recursive = 0, result = FALSE, stdout = FALSE, signal = FALSE, force = FALSE, sleep = getOption("future.wait.interval", 0.01), ...) {
## BACKWARD COMPATIBILITY
if (missing(result) && "value" %in% names(list(...))) {
.Defunct(msg = "Argument 'value' of resolve() is defunct. It was deprecated in future (>= 1.15.0) [2019-11-07]. Use 'result' instead.", package = .packageName)
}

if (is.logical(recursive)) {
if (recursive) recursive <- getOption("future.resolve.recursive", 99)
}
Expand Down
1 change: 0 additions & 1 deletion man/ClusterFuture-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e982a8

Please sign in to comment.