Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Dec 19, 2024
1 parent fe8cd94 commit ab27c95
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions R/geocode_rafa.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ geocode_rafa <- function(input_table,
estado = NULL,
progress = TRUE,
output_simple = TRUE,
ncores = NULL,
n_cores = NULL,
cache = TRUE){

# check input
checkmate::assert_data_frame(input_table)
checkmate::assert_logical(progress)
checkmate::assert_logical(output_simple)
checkmate::assert_number(ncores, null.ok = TRUE)
checkmate::assert_number(n_cores, null.ok = TRUE)
checkmate::assert_logical(cache)
checkmate::assert_names(
names(input_table),
Expand Down Expand Up @@ -89,7 +89,7 @@ geocode_rafa <- function(input_table,


# create db connection -------------------------------------------------------
con <- create_geocodebr_db(ncores = ncores)
con <- create_geocodebr_db(n_cores = n_cores)


# add input and cnefe data sets to db --------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions R/reverse_geocode.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ reverse_geocode <- function(input_table,
con <- create_geocodebr_db(n_cores = n_cores)

# Narrow search scope in cnefe to bounding box

filtered_cnefe_coords <- arrow::open_dataset(get_cache_dir()) |>
dplyr::filter(lon > bbox_lon_min &
lon < bbox_lon_max &
lat > bbox_lat_min &
lat < bbox_lat_max) |>
dplyr::compute()

duckdb::duckdb_register_arrow(con, "filtered_cnefe_coords", filtered_cnefe_coords)
duckdb::duckdb_register_arrow(con, "filtered_cnefe_coords",
filtered_cnefe_coords)


# query_filter_cnefe_coords <- glue::glue("
Expand Down
8 changes: 4 additions & 4 deletions man/geocode_rafa.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab27c95

Please sign in to comment.