dimfalk / netatmo.weather

R wrapper for Netatmo Weather API
GNU General Public License v3.0
3 stars 0 forks source link

`unlist_response()`: adjustments to `{purrr}` >= 1.0.0 #58

Closed dimfalk closed 5 months ago

dimfalk commented 11 months ago

https://github.com/dimfalk/netatmo.weather/blob/7340013a7c7c706136992918b92ace0f9259bf50/R/utils.R#L42-L43

lifecycle::last_lifecycle_warnings()
[[1]]
<warning/lifecycle_warning_deprecated>
Warning:
Automatic coercion from double to character was deprecated in purrr 1.0.0.
ℹ Please use an explicit call to `as.character()` within `map_chr()` instead.
ℹ The deprecated feature was likely used in the netatmo.weather package.
  Please report the issue to the authors.
---
Backtrace:
    ▆
 1. ├─netatmo.weather::get_publicdata(ext = e1)
 2. │ └─netatmo.weather:::unlist_response(r_list, meas = meas) at netatmo.weather/R/get_publicdata.R:89:4
 3. │   └─purrr::map_chr(x[["body"]][["place"]][["location"]], 1) at netatmo.weather/R/utils.R:42:2
 4. │     └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
 5. │       ├─purrr:::with_indexed_errors(...)
 6. │       │ └─base::withCallingHandlers(...)
 7. │       └─purrr:::call_with_cleanup(...)
 8. └─purrr:::deprecate_to_char("double")