download_hcp_dir {neurohcp}R 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)
}

[Package neurohcp version 0.9.0 Index]