Downloads the yearly Parquet files of the CAPES Catalog of Theses and Dissertations for the selected years. The file list and download URLs come from [capes_years].
Arguments
- years
A vector with the desired years (1987-2024).
- destination
The directory where the files will be saved (default: temporary directory).
- timeout
The timeout in seconds for the download process (default: 120 seconds).
- base_url
Optional base URL of a mirror hosting the files listed in [capes_years]. Defaults to `getOption("capesR.base_url")`; when `NULL`, the `url` column of [capes_years] is used.
Examples
# \donttest{
# Download data for the years 1987 and 1990
capes_files <- download_capes_data(c(1987, 1990))
#> Downloading: /var/folders/j9/7g_srh2x0d71c5q0pbj5mxh40000gn/T//Rtmpn6bxJW/capes_1987.parquet
#> Downloading: /var/folders/j9/7g_srh2x0d71c5q0pbj5mxh40000gn/T//Rtmpn6bxJW/capes_1990.parquet
# }
