download_nv_atlas: Download Neurovault Atlas and Label file

Description Usage Arguments Value Examples

View source: R/download_nv_atlas.R

Description

Download Neurovault Atlas and Label file

Usage

1
2
3
4
5
6
7
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
res = nv_atlas(id = 1408, verbose = TRUE)
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())
}
}

neuroconductor-devel/neurovault documentation built on May 5, 2021, 12:13 a.m.