Skip to content

Commit

Permalink
10/24/2024 4:00 pm commit: add timeout for download as 600 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
juliechenerg committed Oct 24, 2024
1 parent 6a07743 commit f22e8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-raw/USASpendingData.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ getFedGovSpending <- function(year) {
if (!file.exists(FedGovExpzip)) {
utils::download.file(paste0("https://files.usaspending.gov/award_data_archive/FY",
year_N, "_All_Contracts_Full_", data_date, ".zip"),
FedGovExpzip, mode = "wb")
FedGovExpzip, mode = "wb", timeout = 600)
}
# Get the name of all files in the zip archive
fname <- unzip(FedGovExpzip, list = TRUE)[unzip(FedGovExpzip, list = TRUE)$Length > 0, ]$Name
Expand Down

0 comments on commit f22e8fd

Please sign in to comment.