Skip to content

Commit b738349

Browse files
cluster() now defaults to workers = availableWorkers() [#118]
1 parent 036ba6e commit b738349

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

R/cluster.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#' and \code{\link{\%<-\%}} will create \emph{cluster futures}.
3737
#'
3838
#' @export
39-
cluster <- function(expr, envir=parent.frame(), substitute=TRUE, lazy=FALSE, globals=TRUE, persistent=FALSE, workers=NULL, user=NULL, revtunnel=TRUE, homogeneous=TRUE, gc=FALSE, earlySignal=FALSE, label=NULL, ...) {
39+
cluster <- function(expr, envir=parent.frame(), substitute=TRUE, lazy=FALSE, globals=TRUE, persistent=FALSE, workers=availableWorkers(), user=NULL, revtunnel=TRUE, homogeneous=TRUE, gc=FALSE, earlySignal=FALSE, label=NULL, ...) {
4040
## BACKWARD COMPATIBILITY
4141
args <- list(...)
4242
if ("cluster" %in% names(args)) {

man/availableCores.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/cluster.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/nbrOfWorkers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for (strategy in strategies) {
1818
} ## for (strategy ...)
1919

2020

21-
strategies <- c("multiprocess", "multisession", "multicore")
21+
strategies <- c("cluster", "multiprocess", "multisession", "multicore")
2222
strategies <- intersect(strategies, supportedStrategies())
2323
cores <- availableCores()
2424
message("Number of available cores: ", cores)

0 commit comments

Comments
 (0)