diff --git a/NEWS.md b/NEWS.md index 798aca8d..e16b9721 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,8 @@ # tidygeocoder (development version) - Corrected documentation for `quiet` parameter in `geo()` and `reverse_geo()` +- Reconfigured the vignette so that it is precomputed and is not executed during +`R CMD check` (ie. `devtools::check()`). Also added a check at the beginning of the vignette to check for the availability of APIs. This fixes an issue that occurred on Mac CRAN checks ([#152](https://github.com/jessecambon/tidygeocoder/issues/152)). # tidygeocoder 1.0.4 diff --git a/R/geo.R b/R/geo.R index c84c671f..1dc1eb1b 100644 --- a/R/geo.R +++ b/R/geo.R @@ -71,19 +71,19 @@ progress_geo <- function(pb = NULL, ...) { #' #' @param min_time minimum amount of time for a query to take (in seconds). If NULL #' then min_time will be set to the default value specified in [min_time_reference]. -#' @param progress_bar if TRUE then a progress bar will be displayed to track query -#' progress for single input geocoding (1 input per query). By default the progress bar +#' @param progress_bar if TRUE then a progress bar will be displayed +#' for single input geocoding (1 input per query). By default the progress bar #' will not be shown for code executed when knitting R Markdown files or code within #' an RStudio notebook chunk. Can be set permanently with `options(tidygeocoder.progress_bar = FALSE)`. #' @param quiet if TRUE then console messages that are displayed by default -#' regarding queries will be suppressed. Can be set permanently with `options(tidygeocoder.quiet = TRUE)`. +#' regarding queries will be suppressed. FALSE is default. +#' Can be set permanently with `options(tidygeocoder.quiet = TRUE)`. #' @param api_url custom API URL. If specified, the default API URL will be overridden. #' This parameter can be used to specify a local Nominatim server, for instance. #' @param timeout query timeout (in minutes) #' #' @param flatten if TRUE (default) then any nested dataframes in results are flattened if possible. -#' Note that in some cases results are flattened regardless such as for -#' Geocodio batch geocoding. +#' Note that in some cases results are flattened regardless such as for Geocodio batch geocoding. #' @param batch_limit `r get_batch_limit_documentation(reverse = FALSE)` #' @param batch_limit_error `r lifecycle::badge("deprecated")` `r get_batch_limit_error_documentation(reverse = FALSE)` #' @param verbose if TRUE then detailed logs are output to the console. FALSE is default. Can be set diff --git a/docs/articles/developer_notes.html b/docs/articles/developer_notes.html index 362484ec..fadad31a 100644 --- a/docs/articles/developer_notes.html +++ b/docs/articles/developer_notes.html @@ -162,7 +162,7 @@
verbose = TRUE
to make sure it behaves as expected. You can reference tests available the ‘sandbox’ folder for reference.devtools::check()
to make sure the package still passes all tests and the vignette runs properly. To only run the package tests use devtools::test()
, but note these tests do not query the geocoding services to avoid external dependencies.devtools::test()
) because they require API keys which would not exist on all systems and are dependent on the geocoding services being online at that the time of the test.devtools::check()
to make sure the package still passes all tests and checks. To only run the package tests use devtools::test()
, but note these tests do not query the geocoding services to avoid external dependencies.devtools::test()
) because they require API keys which would not exist on all systems and are dependent on the geocoding services being online at that the time of the test.urlchecker::url_check()
to check all package URLs.address | @@ -222,7 +222,7 @@
---|
street | @@ -255,7 +255,7 @@
---|
progress_bar | -if TRUE then a progress bar will be displayed to track query -progress for single input geocoding (1 input per query). By default the progress bar + | if TRUE then a progress bar will be displayed
+for single input geocoding (1 input per query). By default the progress bar
will not be shown for code executed when knitting R Markdown files or code within
an RStudio notebook chunk. Can be set permanently with |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
quiet | if TRUE then console messages that are displayed by default
-regarding queries will be suppressed. Can be set permanently with |
+regarding queries will be suppressed. FALSE is default.
+Can be set permanently with |||||||||||
api_url | @@ -371,8 +372,7 @@||||||||||||
flatten | if TRUE (default) then any nested dataframes in results are flattened if possible. -Note that in some cases results are flattened regardless such as for -Geocodio batch geocoding. |
+Note that in some cases results are flattened regardless such as for Geocodio batch geocoding.
|||||||||||
batch_limit | @@ -468,7 +468,7 @@||||||||||||
progress_bar | -if TRUE then a progress bar will be displayed to track query -progress for single input geocoding (1 input per query). By default the progress bar + | if TRUE then a progress bar will be displayed
+for single input geocoding (1 input per query). By default the progress bar
will not be shown for code executed when knitting R Markdown files or code within
an RStudio notebook chunk. Can be set permanently with |
||||||||||
quiet | if TRUE then console messages that are displayed by default
-regarding queries will be suppressed. Can be set permanently with |
+regarding queries will be suppressed. FALSE is default.
+Can be set permanently with |||||||||||
api_url | @@ -320,8 +321,7 @@||||||||||||
flatten | if TRUE (default) then any nested dataframes in results are flattened if possible. -Note that in some cases results are flattened regardless such as for -Geocodio batch geocoding. |
+Note that in some cases results are flattened regardless such as for Geocodio batch geocoding.
|||||||||||
batch_limit | diff --git a/docs/reference/reverse_geocode.html b/docs/reference/reverse_geocode.html index 254bd3d8..ccc3b661 100644 --- a/docs/reference/reverse_geocode.html +++ b/docs/reference/reverse_geocode.html @@ -285,7 +285,7 @@