sync_batch: Synchronise a raadsync repo using BatchJobs

Description Usage Arguments Value Examples

View source: R/sync_batch.R

Description

Note that the reg object should be created with raadsync in the list of packages (see example).

Usage

1
sync_batch(config, reg, create_root = FALSE, verbose = TRUE)

Arguments

config

data.frame: raadsync configuration as returned by read_repo_config

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

Value

list, with status and captured console output from each synchronisation task

Examples

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)

AustralianAntarcticDataCentre/raadsync documentation built on May 5, 2019, 8:14 a.m.