Skip to content

Commit

Permalink
clean create_geocodebr_db
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Dec 18, 2024
1 parent 61df6bf commit e636a09
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions R/create_geocodebr_db.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ create_geocodebr_db <- function(db_path = tempdir(),
checkmate::assert_number(ncores, null.ok = TRUE)


# check if CNEFE has been downloaded
cache_dir <- geocodebr::get_cache_dir()
cached_files <- list.files(cache_dir, recursive = TRUE, pattern = '.parquet')

# if (length(cached_files)==0) {
# stop("No CNEFE data has been downloaded yet.")
# }

## create db connection -------------------------------------------------------

# remove traces of previous db
Expand Down Expand Up @@ -70,9 +62,5 @@ create_geocodebr_db <- function(db_path = tempdir(),
gc()
}

# # Load CNEFE data and write it to DuckDB
# cnefe <- arrow_open_dataset(cache_dir)
# duckdb::duckdb_register_arrow(con, "cnefe", cnefe)

return(con)
}

0 comments on commit e636a09

Please sign in to comment.