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:
@@ -22,13 +22,6 @@ subdivisions <- c(
|
||||
# load geometry lookup (static) ----
|
||||
geometry_lookup <- readRDS("./data-raw/addresses/geometry_lookup.rds")
|
||||
|
||||
# download fresh scpa data ----
|
||||
download.file(
|
||||
url = "https://www.sc-pa.com/downloads/SCPA%20Public.xlsx",
|
||||
destfile = "./data-raw/property/SCPA Public.xlsx",
|
||||
mode = "wb"
|
||||
)
|
||||
|
||||
# load and clean scpa data ----
|
||||
owners_raw <-
|
||||
readxl::read_xlsx(
|
||||
|
||||
Reference in New Issue
Block a user