Download Neurovault Atlas and Label file

download_nv_atlas(
  id,
  verbose = TRUE,
  outdir = tempfile(),
  overwrite = TRUE,
  ...
)

Arguments

id

id of the atlas

verbose

print diagnostic messages

outdir

output directory for images

overwrite

Will only overwrite existing file if TRUE.

...

additional options to pass to GET

Value

A data.frame of the image information and their output filenames

Examples

res = nv_atlas(id = 1408, verbose = TRUE)
#> GET command is:
#> Response [https://neurovault.org/api/atlases/1408/] #> Date: 2020-03-18 16:21 #> Status: 200 #> Content-Type: application/json; charset=utf-8 #> Size: 1.11 kB #>
df = results_to_df(res$content$results) if (.Platform$OS.type != "windows") { result = httr::GET(df$file[1]) result res = download_nv_atlas(id = 1408, verbose = 2) } else { if (requireNamespace("curl", quietly = TRUE)) { print(curl::curl_version()) } }
#> GET command is:
#> Response [https://neurovault.org/api/atlases/1408/] #> Date: 2020-03-18 16:21 #> Status: 200 #> Content-Type: application/json; charset=utf-8 #> Size: 1.11 kB #> #> | | | 0% | |======================================================================| 100% #> | | | 0% | |======================================================================| 100%