download_hcp_dir: Download an entire directory from HCP

Description Usage Arguments Value Examples

View source: R/download_hcp_dir.R

Description

Downloads a directory/folder from HCP database

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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

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

muschellij2/neurohcp documentation built on Sept. 18, 2021, 7:19 p.m.