Description Usage Arguments Value Examples
View source: R/Clusterfunctions.r
StoreProcessData
1 2 3 4 5 6 7 | AddNewClustertoDB(
cl = NULL,
clusterName = "super cluster",
MasterCluster = NA,
DBdir = .Options$RClusterWatcher.DBdir,
verbose = FALSE
)
|
cl |
parallel cluster object from parallel::makePSOCKcluster(names = 2) |
clusterName |
character: optional name for cluster |
MasterCluster |
put in md5h hash of masterclusters, defaults to NA |
DBdir |
database location defaults to .Options$RClusterWatcher.DBdir |
verbose |
boolean, defaults to FALSE |
md5 heash location in database
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #' # Make sure not to use a tempfile as in this example below
# ConnectClusterDB(DBdir = dirname(tempfile()))
# but rather e.g.:
## Not run:
ConnectClusterDB(DBdir = "C:")
## End(Not run)
cl <- parallel::makePSOCKcluster(names = 2)
doParallel::registerDoParallel(cl)
ConnectClusterDB(DBdir = dirname(tempfile()))
AddNewClustertoDB(cl)
#necessary to satisfy cran check
parallel::stopCluster(cl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.