Skip to content
Prev 1513 / 2152 Next

Error in UseMethod("stopCluster") : no applicable method for 'stopCluster' ...

Dear Martin,

Thanks for your help. I tried to put in library(parallel) in your example (see
below), but I still obtain

,----
| Error in NextMethod() : 'NextMethod' called from an anonymous function
`----

Do you know why?

Cheers,

Marius

grid <- expand.grid(a=1:4, b=2:10)
ngrid <- nrow(grid)
f <- function(x) sum(x)

library(parallel)

ex <- function() {
    cl <- makeCluster(detectCores(), type="MPI")
    stopCluster(cl)
}

res <- ex()



Martin Morgan <mtmorgan at fhcrc.org> writes:
--
ETH Zurich
Dr. Marius Hofert
RiskLab, Department of Mathematics
HG E 65.2
R?mistrasse 101
8092 Zurich
Switzerland

Phone +41 44 632 2423
http://www.math.ethz.ch/~hofertj