Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ramiromagno opened this issue Jun 21, 2023 · 1 comment

Comments

@ramiromagno
Copy link
Contributor

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
Copy link

Hi Team,

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants