Last updated on 2024-06-09 05:58:32 CEST.
Package | ERROR | OK |
---|---|---|
rcrimeanalysis | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.5.0
Check: examples
Result: ERROR
Running examples in 'rcrimeanalysis-Ex.R' failed
The error most likely occurred in:
> ### Name: geocode_address
> ### Title: Batch Geocoding of Physical Addresses using the Google Maps API
> ### Aliases: geocode_address
> ### Keywords: spatial
>
> ### ** Examples
>
> ## Don't show:
> library(ggmap) #needed to register Google Cloud Credentials
Loading required package: ggplot2
ℹ Google's Terms of Service: <https://mapsplatform.google.com>
Stadia Maps' Terms of Service: <https://stadiamaps.com/terms-of-service/>
OpenStreetMap's Tile Usage Policy: <https://operations.osmfoundation.org/policies/tiles/>
ℹ Please cite ggmap if you use it! Use `citation("ggmap")` for details.
> register_google("AIzaSyB29FxQZBTC3K8kVOG29KZJPvjbFVDhRFU")
> addresses <- c("Milan Puskar Stadium, Morgantown, WV","Woodburn Hall, Morgantown, WV")
> geocode_address(addresses)
ℹ <https://maps.googleapis.com/maps/api/geocode/json?address=Milan+Puskar+Stadium,+Morgantown,+WV&key=xxx>
Error in `map()`:
ℹ In index: 1.
Caused by error in `curl::curl_fetch_memory()`:
! Timeout was reached: [maps.googleapis.com] Resolving timed out after 10013 milliseconds
Backtrace:
▆
1. ├─rcrimeanalysis::geocode_address(addresses)
2. │ └─ggmap::geocode(location)
3. │ └─location %>% ...
4. ├─purrr::map(...)
5. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
6. │ ├─purrr:::with_indexed_errors(...)
7. │ │ └─base::withCallingHandlers(...)
8. │ ├─purrr:::call_with_cleanup(...)
9. │ └─ggmap (local) .f(.x[[i]], ...)
10. │ └─ggmap::geocode(...)
11. │ └─httr::GET(url)
12. │ └─httr:::request_perform(req, hu$handle$handle)
13. │ ├─httr:::request_fetch(req$output, req$url, handle)
14. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
15. │ └─curl::curl_fetch_memory(url, handle = handle)
16. └─base::.handleSimpleError(...)
17. └─purrr (local) h(simpleError(msg, call))
18. └─cli::cli_abort(...)
19. └─rlang::abort(...)
Execution halted
Flavor: r-devel-windows-x86_64