rOpenSpain / spanishoddata

Access national high-quality and open-access datasets on movement patterns derived from mobile telephone datasets
https://ropenspain.github.io/spanishoddata/
Other
22 stars 0 forks source link

no specific dependency version dependency for curl leads to fail on R4.1 #72

Closed e-kotov closed 2 months ago

e-kotov commented 2 months ago
library(spanishoddata)
> Sys.setenv(SPANISH_OD_DATA_DIR = "~/spanish_od_data")
> dates <- c("2020-02-14")
> d_1 <- spod_get(type = "od", zones = "distr", dates = dates)
 0s 0s 0s 0s 0s 0s 0s 0s 0sData version detected from dates: 1                                                                                                                    0s
No data links xml files found, getting latest v1 data links xml
Saving the file to: /home/rstudio/spanish_od_data/data_links_v1_2024-09-05.xml
 [100%] Downloaded 901442 bytes...
Using existing data links xml: /home/rstudio/spanish_od_data/data_links_v1_2024-09-05.xml
Downloading approximately 0.07 GB of data.                                                                                                             0s
Error: 'multi_download' is not an exported object from 'namespace:curl'

Need to check when curl introduced the multi_download and depend on this minimal version. That may lead to a requirement of a certain R 4.x version.

e-kotov commented 2 months ago

Apparently it is {curl} v 5.0.0 https://github.com/jeroen/curl/blob/a97f53b26ec7c0d696babeca1a6f349b3379d5d5/NEWS#L36-L37

5.0.0
 - New function multi_download() which supports concurrent downloads and resuming
e-kotov commented 2 months ago

Closed with #73