Procházet zdrojové kódy

fixups and full run

main
Garrick Aden-Buie před 2 roky
rodič
revize
051b60b922
V databázi nebyl nalezen žádný známý klíč pro tento podpis
3 změnil soubory, kde provedl 23 přidání a 21 odebrání
  1. +2
    -0
      process/R/open_dataset.R
  2. +2
    -2
      process/_targets.R
  3. +19
    -19
      process/_targets/meta/meta

+ 2
- 0
process/R/open_dataset.R Zobrazit soubor

@@ -27,6 +27,8 @@ out_open_dataset_db <- function(table, ..., path_out = table) {
cf_open_dataset_db <- function(table, ..., path = table, dir = "data-prep") {
pq <- cf_open_dataset(path, ..., dir = dir)

table <- fs::path_file(table)

con <- duckdb_global_con()
duckdb::duckdb_register_arrow(con, table, pq)
dplyr::tbl(con, table)

+ 2
- 2
process/_targets.R Zobrazit soubor

@@ -106,7 +106,7 @@ list(
path_officers = path_data_prep_officers,
path_receipts = path_data_prep_receipts,
path_expenditures = path_data_prep_expenditures,
path_candidate_listing = path_candidate_listing,
path_candidate_listing = path_candidate_listing_raw,
path_voters = NULL # path_voters_parquet
),
format = "parquet"
@@ -126,7 +126,7 @@ list(

tar_target(committees, prepare_committees(cover_raw, report_list)),

tar_target(donations, prepare_donations(path_data_prep_receipts, report_list)),
# tar_target(donations, prepare_donations(path_data_prep_receipts, report_list)),

# Outside data sources -----
tar_target(candidate_listing_raw, get_candidate_listing(2016:2023)),

+ 19
- 19
process/_targets/meta/meta
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


Načítá se…
Zrušit
Uložit