Description Usage Arguments Value Examples
Note that the reg
object should be created with raadsync in the list of packages (see example).
1 | sync_batch(config, reg, create_root = FALSE, verbose = TRUE)
|
config |
data.frame: raadsync configuration as returned by |
reg |
Registry: a BatchJobs registry object |
create_root |
logical: should the data root directory be created if it does not exist? |
verbose |
logical: if TRUE, provide additional progress output |
list, with status and captured console output from each synchronisation task
1 2 3 4 5 6 7 8 9 | ## Not run:
library(BatchJobs)
setConfig(cluster.functions= makeClusterFunctionsMulticore(ncpus=7),debug=FALSE)
reg <- makeRegistry(id="syncysync",file.dir="sync_files",packages="raadsync")
cf <- read_repo_config("/my/local/repo/config")
sync_log <- sync_batch(cf,reg)
removeRegistry(reg,ask="no") ## clean up
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.