I have been able to download the following .zip file using this code
library(curl)
file_destination <- "C:/Documents/c3.zip"
curl_fetch_disk(url = "https://api.esios.ree.es/archives/9/download?date_type=datos&start_date=01-01-2019&end_date=31-01-2019",
path = file_destination )
What I a missing?
1) I just would like to download to a Temp.file instead a local directory, I guess replacing file_destination with
file_destination <- tempfile()
2) I need to create a dataframe from all CSV files that match this name pattern "C3_cuotaven*.csv" :
2.1 name starts with "C3_cuotaven"
2.2 and ends with ".csv"
Please help