snowFT-startstop {snowFT} | R Documentation |
Functions to start a snowFT cluster and to set default cluster options.
makeClusterFT(spec, type = getClusterOption("type"), names = NULL, ft_verbose = FALSE, ...)
spec |
Cluster size. |
type |
Character string that specifies cluster type. "PVM", "MPI" and "SOCK" are supported. |
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 |
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.
The cluster should be stopped by stopCluster
of the snow package.
snow-startstop
functions of the snow package.
## Not run: cl <- makeClusterFT(5) res <- clusterApplyFT(cl, 1:10, get("+"), 3) stopCluster(res[[2]]) print(res[[1]]) ## End(Not run)