snowFT-startstop | R Documentation |
Functions to start and stop a snowFT cluster and to set default cluster options.
makeClusterFT(spec, type = getClusterOption("type"),
names = NULL, ft_verbose = FALSE, ...)
stopClusterFT(cl)
spec |
Cluster size. |
type |
Character string that specifies cluster type. "MPI" and "SOCK" are supported ("PVM" is currently not available). |
names |
Used only for the ‘SOCK’ layer. It should be a vector of host names, or a list containing specification for each host (see Example in |
ft_verbose |
If TRUE, debugging messages are sent to standard output. |
... |
Cluster option specifications. A useful option is |
cl |
Cluster object. |
makeClusterFT
starts a cluster of the specified or default type, loads the snowFT library on each node
and returns a reference to the cluster. See makeCluster
for more details.
stopClusterFT
stops the cluster.
snow-startstop
functions of the snow package.
## Not run:
cl <- makeClusterFT(5, ft_verbose = TRUE)
res <- clusterApplyFT(cl, 1:10, get("+"), y = 3)
stopClusterFT(res[[2]])
print(unlist(res[[1]]))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.