Skip to contents

Runs aws s3 sync from src to dest, pulling down only the files the workflow's tool schemas declare (see wf_s3sync_patterns()).

Usage

cli_nemo_s3sync(
  src,
  dest,
  workflow,
  dryrun = FALSE,
  show_patterns = FALSE,
  include = NULL,
  exclude = NULL,
  quiet = TRUE
)

Arguments

src

(character(1))
S3 source path.

dest

(character(1))
Local destination directory.

workflow

(character(1))
Workflow name (e.g. "wigits").

dryrun

(logical(1))
Pass --dryrun to aws s3 sync.

show_patterns

(logical(1))
Print the include/exclude patterns as TSV to stdout and return without syncing.

include, exclude

(character(n))
Extra globs, added after the workflow's own patterns (see wf_s3sync_patterns()).

quiet

(logical(1))
Pass --only-show-errors to aws s3 sync (see s3sync()). The CLI sets it unless --verbose is given.

Examples

out <- capture.output(
  cli_nemo_s3sync(
    src = "s3://bucket/run1", dest = tempfile(),
    workflow = "workflow1", show_patterns = TRUE,
    include = "*.extra.tsv", exclude = "*.big.tsv"
  )
)