Learn R Programming

neurohcp (version 0.11.0)

download_hcp_dir: 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(...)

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)

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

Examples

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

Run the code above in your browser using DataLab