R/download_nv_collection_images.R
download_nv_collection_images.Rd
Download Neurovault Collections Images
download_nv_collection_images( id, verbose = TRUE, outdir = tempfile(), overwrite = TRUE, ... )
id | id of the collection |
---|---|
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_collection_images(id = 77)#>#> Response [https://neurovault.org/api/collections/77/images/] #> Date: 2020-03-18 16:21 #> Status: 200 #> Content-Type: application/json; charset=utf-8 #> Size: 6.95 kB #>if (.Platform$OS.type != "windows") { res = download_nv_collection_images(id = 77, verbose = 2) } else { if (requireNamespace("curl", quietly = TRUE)) { print(curl::curl_version()) } }#>#> Response [https://neurovault.org/api/collections/77/images/] #> Date: 2020-03-18 16:21 #> Status: 200 #> Content-Type: application/json; charset=utf-8 #> Size: 6.95 kB #>#>#> | | | 0% | |== | 3% | |==== | 6% | |====== | 9% | |======== | 12% | |=========== | 15% | |============= | 18% | |=============== | 21% | |================= | 24% | |=================== | 27% | |===================== | 30% | |======================= | 33% | |========================== | 36% | |============================ | 40% | |============================== | 43% | |================================ | 46% | |================================== | 49% | |==================================== | 52% | |====================================== | 55% | |======================================== | 58% | |=========================================== | 61% | |============================================= | 64% | |=============================================== | 67% | |================================================= | 70% | |=================================================== | 73% | |===================================================== | 76% | |======================================================= | 79% | |========================================================== | 82% | |============================================================ | 85% | |============================================================== | 88% | |================================================================ | 91% | |================================================================== | 94% | |==================================================================== | 97% | |======================================================================| 100% #> | | | 0% | |== | 3% | |==== | 6% | |====== | 9% | |========= | 12% | |=========== | 15% | |============= | 18% | |=============== | 21% | |================= | 24% | |=================== | 27% | |===================== | 31% | |======================== | 34% | |========================== | 37% | |============================ | 40% | |============================== | 43% | |================================ | 46% | |================================== | 49% | |==================================== | 52% | |======================================= | 55% | |========================================= | 58% | |=========================================== | 61% | |============================================= | 64% | |=============================================== | 67% | |================================================= | 70% | |=================================================== | 73% | |====================================================== | 76% | |======================================================== | 80% | |========================================================== | 83% | |============================================================ | 86% | |============================================================== | 89% | |================================================================ | 92% | |================================================================== | 95% | |===================================================================== | 98% | |======================================================================| 100% #> | | | 0% | |== | 3% | |==== | 6% | |====== | 9% | |======== | 12% | |=========== | 15% | |============= | 18% | |=============== | 21% | |================= | 24% | |=================== | 27% | |===================== | 30% | |======================= | 33% | |========================= | 36% | |============================ | 39% | |============================== | 42% | |================================ | 46% | |================================== | 49% | |==================================== | 52% | |====================================== | 55% | |======================================== | 58% | |=========================================== | 61% | |============================================= | 64% | |=============================================== | 67% | |================================================= | 70% | |=================================================== | 73% | |===================================================== | 76% | |======================================================= | 79% | |========================================================= | 82% | |============================================================ | 85% | |============================================================== | 88% | |================================================================ | 91% | |================================================================== | 94% | |==================================================================== | 97% | |======================================================================| 100% #> | | | 0% | |== | 3% | |==== | 6% | |====== | 9% | |======== | 12% | |=========== | 15% | |============= | 18% | |=============== | 21% | |================= | 24% | |=================== | 27% | |===================== | 30% | |======================= | 33% | |========================= | 36% | |============================ | 39% | |============================== | 42% | |================================ | 46% | |================================== | 49% | |==================================== | 52% | |====================================== | 55% | |======================================== | 58% | |=========================================== | 61% | |============================================= | 64% | |=============================================== | 67% | |================================================= | 70% | |=================================================== | 73% | |===================================================== | 76% | |======================================================= | 79% | |========================================================= | 82% | |============================================================ | 85% | |============================================================== | 88% | |================================================================ | 91% | |================================================================== | 94% | |==================================================================== | 97% | |======================================================================| 100%