Consolidate weekly refresh into single orchestrator script
All checks were successful
Deploy stAndrews / deploy (push) Successful in 5s
All checks were successful
Deploy stAndrews / deploy (push) Successful in 5s
refresh_all.R downloads both SCPA files once, then sources update_owners.R and update_sales.R. Single cron job at 11pm Sunday.
This commit is contained in:
@@ -17,16 +17,8 @@ subdivisions <- c(
|
||||
|
||||
geometry_lookup <- readRDS("./data-raw/addresses/geometry_lookup.rds")
|
||||
|
||||
# ── Download and extract Sarasota.csv ─────────────────────────────────────────
|
||||
zip_path <- "./data-raw/property/SCPA_Parcels_Sales_CSV.zip"
|
||||
options(timeout = 300)
|
||||
download.file(
|
||||
url = "https://www.sc-pa.com/downloads/SCPA_Parcels_Sales_CSV.zip",
|
||||
destfile = zip_path,
|
||||
mode = "wb"
|
||||
)
|
||||
|
||||
csv_con <- unz(zip_path, "Parcel_Sales_CSV/Sarasota.csv")
|
||||
# ── Load Sarasota.csv from cached zip ────────────────────────────────────────
|
||||
csv_con <- unz("./data-raw/property/SCPA_Parcels_Sales_CSV.zip", "Parcel_Sales_CSV/Sarasota.csv")
|
||||
|
||||
# ── Load and filter ───────────────────────────────────────────────────────────
|
||||
sales <-
|
||||
|
||||
Reference in New Issue
Block a user