download_hcp_dir: Download an entire directory from HCP

View source: R/download_hcp_dir.R

download_hcp_dirR Documentation

Download an entire directory from HCP

Description

Downloads a directory/folder from HCP database

Usage

download_hcp_dir(
  prefix,
  delimiter = "",
  outdir = tempfile(),
  verbose = TRUE,
  ...
)

download_fcp_dir(...)

download_openneuro_dir(...)

Arguments

prefix

Folder to download

delimiter

Delimiter for files

outdir

Output directory

verbose

Should diagnostic values be printed?

...

additional arguments to pass to hcp_list_files

Value

List of return from calling hcp_list_files, the output directory, and all destination files (not subsetted by those that did in fact download)

Examples

if (have_aws_key()) {
   prefix = "HCP/100307/release-notes"
   res = download_hcp_dir(prefix = prefix, verbose = FALSE)
}

neuroconductor/neurohcp documentation built on Feb. 5, 2023, 6:19 a.m.