-
Notifications
You must be signed in to change notification settings - Fork 13
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
implicit coersion from integer to character is being deprecated in purr/tidyverse #144
Comments
Thanks for the reprex! What line exactly raises the error? As a workaround (also what I do in my downstream pipelines, you could mutate the IDs to character where needed to avoid the warning. |
Thanks for a reply. AFAIK, my arguments are already type character. The problem is downstream within ruODK::odata_submission_get function. But neither my function, nor the ruODK::odata_submission_get uses map_chr that is compaining, so it must be in some lower-level ones it calls. Haven't drilled that far into the package code. It is going to be hard to re-create a reprex even for me. Guess we'll have to wait till tidyverse does the lifecycle, and the problem errors out, rather than giving a warning every 8 hrs... |
Sorry I've messed up my latex formatting when creating this issue, you have to read it in plain text |
It would be great to drill down a bit further to troubleshoot this! Could you do something like this for just one form (dropping the
The goal is to isolate the one line that throws the error for you, and capture the error message (paste here). |
Florian
Thanks for a tip, and apology for the delay, only just got time to revisit.
Unfortunately, the problem isn't there. The join works without a warning,
and both values are of class "character".
…On Thu, 2 Feb 2023 at 13:56, Florian Mayer ***@***.***> wrote:
It would be great to drill down a bit further to troubleshoot this!
Could you do something like this for just one form (dropping the map2):
# Set defaults to one specific form:
ruODK::ru_setup(pid=x, fid=y)
tbl_main <- ruODK::odata__submission_get(table = 'Submissions')
tbl_sub <- ruODK::odata__submission_get(table = 'Submissions.botanal_repeat')
tbl_both <- tbl_main |>
dplyr::left_join(tbl_sub, by=c("id"="submissions_id")) # this line could throw the error
class(tbl_main$id) == class(tbl_sub$submisions_id) # are both the same class?
—
Reply to this email directly, view it on GitHub
<#144 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDFGZP6DA53K6EGDHKAAOLWVMO4DANCNFSM6AAAAAATWMTDPY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Dr. Igor Kardailsky
LinkedIn <https://www.linkedin.com/in/igor-kardailsky-4276a03/>
Google Scholar
<https://scholar.google.com/citations?user=mt0RhpcAAAAJ&hl=en>
twitter <https://twitter.com/ikardail>
+61 4 120 41458
|
Awesome, thanka for confirming that. I'll close this issue seeing that the problem seems to be fixed. |
Florian, you may have misunderstood, the warning persists, but not in the code we tested. While playing with breakpoints in my function, I figured the problem is in the
and one of those default args ends up being an integer by the time it makes it to a I suggest we reopen and investigate the issue further |
Problem
ruODK function(s) used
Unexpected behaviour
Reproducible example
Session Info
ODK Central version:
The text was updated successfully, but these errors were encountered: