Skip to content

Commit

Permalink
use quoted default values to fix memoise
Browse files Browse the repository at this point in the history
  • Loading branch information
dpprdan committed Oct 28, 2021
1 parent 4fbfbc4 commit 4a37cf0
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion R/geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ progress_geo <- function(pb = NULL, ...) {
#' @export
geo <- function(address = NULL,
street = NULL, city = NULL, county = NULL, state = NULL, postalcode = NULL, country = NULL,
method = 'osm', cascade_order = c('census', 'osm'), lat = lat, long = long, limit = 1,
method = 'osm', cascade_order = c('census', 'osm'), lat = 'lat', long = 'long', limit = 1,
full_results = FALSE, mode = '', unique_only = FALSE, return_addresses = TRUE,
min_time = NULL, progress_bar = show_progress_bar(), quiet = getOption("tidygeocoder.quiet", FALSE),
api_url = NULL, timeout = 20, flatten = TRUE, batch_limit = NULL, batch_limit_error = TRUE,
Expand Down
2 changes: 1 addition & 1 deletion R/geocode.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#' @export
geocode <- function(.tbl, address = NULL, street = NULL, city = NULL, county = NULL,
state = NULL, postalcode = NULL, country = NULL,
lat = lat, long = long, return_input = TRUE, limit = 1, return_addresses = NULL, unique_only = FALSE, ...) {
lat = 'lat', long = 'long', return_input = TRUE, limit = 1, return_addresses = NULL, unique_only = FALSE, ...) {

# Non-standard evaluation --------------------------------------------------------------
# Quote unquoted vars without double quoting quoted vars
Expand Down
2 changes: 1 addition & 1 deletion R/geocode_combine.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ geo_combine <- function(queries, global_params = list(), address = NULL,
#' @export
geocode_combine <- function(.tbl, queries, global_params = list(),
return_list = FALSE, cascade = TRUE, query_names = NULL,
lat = lat, long = long) {
lat = 'lat', long = 'long') {

# NSE - converts lat and long parameters to character values
lat <- rm_quote(deparse(substitute(lat)))
Expand Down
2 changes: 1 addition & 1 deletion R/reverse_geo.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ get_coord_parameters <- function(custom_query, method, lat, long) {
#' }
#' @seealso [reverse_geocode] [api_parameter_reference] [min_time_reference] [batch_limit_reference]
#' @export
reverse_geo <- function(lat, long, method = 'osm', address = address, limit = 1,
reverse_geo <- function(lat, long, method = 'osm', address = 'address', limit = 1,
full_results = FALSE, mode = '', unique_only = FALSE, return_coords = TRUE,
min_time = NULL, progress_bar = show_progress_bar(), quiet = getOption("tidygeocoder.quiet", FALSE),
api_url = NULL, timeout = 20, flatten = TRUE,
Expand Down
2 changes: 1 addition & 1 deletion R/reverse_geocode.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#' }
#' @seealso [reverse_geo]
#' @export
reverse_geocode <- function(.tbl, lat, long, address = address, return_input = TRUE, limit = 1, return_coords = NULL, unique_only = FALSE, ...) {
reverse_geocode <- function(.tbl, lat, long, address = 'address', return_input = TRUE, limit = 1, return_coords = NULL, unique_only = FALSE, ...) {

# Non-standard evaluation --------------------------------------------------------------
# Quote unquoted vars without double quoting quoted vars
Expand Down
4 changes: 2 additions & 2 deletions man/geo.Rd

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

4 changes: 2 additions & 2 deletions man/geocode.Rd

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

4 changes: 2 additions & 2 deletions man/geocode_combine.Rd

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

2 changes: 1 addition & 1 deletion man/reverse_geo.Rd

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

2 changes: 1 addition & 1 deletion man/reverse_geocode.Rd

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

0 comments on commit 4a37cf0

Please sign in to comment.