Description Usage Arguments Value Examples
View source: R/Clusterfunctions.r
Verify if a registered Cluster is also an active Cluster
1 | VerifyCluster(ClusterHash = NULL, DBdir = .Options$RClusterWatcher.DBdir)
|
ClusterHash |
md5 has of Database record |
DBdir |
database location defaults to .Options$RClusterWatcher.DBdir |
verfiedClusterObject: list Containing, RegisterdCluster, ActiveCluster and md5 hash db location
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Make sure not to use a tempfile as in this example below
# ConnectClusterDB(DBdir = dirname(tempfile()))
# but rather e.g.:
\dontrun{
ConnectClusterDB(DBdir = "C:")
}
ConnectClusterDB(ResetDB = T, dirname(tempfile()))
cl <- parallel::makePSOCKcluster(names = 2)
doParallel::registerDoParallel(cl)
hash <- AddNewClustertoDB(cl)
test <- VerifyCluster(ClusterHash = hash)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.