Download Neurovault Atlas and Label file
download_nv_atlas( id, verbose = TRUE, outdir = tempfile(), overwrite = TRUE, ... )
id | id of the atlas |
---|---|
verbose | print diagnostic messages |
outdir | output directory for images |
overwrite | Will only overwrite existing file if |
... | additional options to pass to |
A data.frame
of the image information
and their output filenames
res = nv_atlas(id = 1408, verbose = TRUE)#>#> 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()) } }#>#> 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%