colearendt / tidyjson

Tidy your JSON data in R with tidyjson
Other
182 stars 14 forks source link

Automatic coercion from integer to character was deprecated in purrr 1.0.0. #145

Open ramiromagno opened 1 year ago

ramiromagno commented 1 year ago

I'm using {tidyjson} version 0.3.2.

> library(quincunx)
> foo <- get_scores(pgs_id = 'PGS000088')
Warning message:
Automatic coercion from integer 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 tidyjson package.
  Please report the issue at <https://github.com/colearendt/tidyjson/issues>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated. 

Output from lifecycle::last_lifecycle_warnings():

Backtrace:
     ▆
  1. ├─quincunx::get_scores(pgs_id = "PGS000088")
  2. │ ├─... %>% coerce_to_s4_scores()
  3. │ └─quincunx:::get_score_by_pgs_id(...)
  4. │   ├─... %>% purrr::pmap(dplyr::bind_rows)
  5. │   └─purrr::map(...)
  6. │     └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  7. │       ├─purrr:::with_indexed_errors(...)
  8. │       │ └─base::withCallingHandlers(...)
  9. │       ├─purrr:::call_with_cleanup(...)
 10. │       └─quincunx (local) .f(.x[[i]], ...)
 11. │         └─quincunx:::as_tidy_tables_scores(tbl_json)
 12. │           └─tbl_json2 %>% tidyjson::enter_object("publication") %>% ...
 13. ├─quincunx:::coerce_to_s4_scores(.)
 14. ├─purrr::pmap(., dplyr::bind_rows)
 15. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
 16. │   └─purrr:::vctrs_list_compat(.l, error_call = .purrr_error_call)
 17. │     └─purrr:::vctrs_vec_compat(x, user_env)
 18. ├─quincunx:::unwrap_publication(.)
 19. │ └─... %>% tidyjson::as_tibble()
 20. ├─tidyjson::as_tibble(.)
 21. ├─dplyr::mutate(...)
 22. ├─tidyjson::spread_values(...)
 23. │ └─purrr::map(fns, function(f) f(json))
 24. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 25. │     ├─purrr:::with_indexed_errors(...)
 26. │     │ └─base::withCallingHandlers(...)
 27. │     ├─purrr:::call_with_cleanup(...)
 28. │     └─tidyjson (local) .f(.x[[i]], ...)
 29. │       └─tidyjson (local) f(json)
 30. │         └─... %>% map.function(recursive.fun)
 31. ├─purrr (local) map.function(., recursive.fun)
 32. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress)
 33. │   ├─purrr:::with_indexed_errors(...)
 34. │   │ └─base::withCallingHandlers(...)
 35. │   └─purrr:::call_with_cleanup(...)
 36. └─purrr:::deprecate_to_char("integer")
safeisrisky commented 10 months ago

Hi Team,

Facing the same warning as mentioned above. Any chance it would be fixed please ?

Thanks