powered by
Create a cluster of nodes for parallel computation
makeCluster(numberOfThreads, singleThreadToMain = TRUE, divideFfMemory = TRUE, setFfTempDir = TRUE)
Number of parallel threads.
If numberOfThreads is 1, should we fall back to running the process in the main thread?
numberOfThreads
When TRUE, the memory available for processing ff and ffdf objects will be equally divided over the threads.
When TRUE, the ffTempDir option will be copied to each thread.
An object representing the cluster.
# NOT RUN { fun <- function(x) { return (x^2) } cluster <- makeCluster(numberOfThreads = 3) clusterApply(cluster, 1:10, fun) stopCluster(cluster) # }
Run the code above in your browser using DataLab