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

Error in df_append() #1577

Closed
nicfre opened this issue Oct 17, 2024 · 2 comments
Closed

Error in df_append() #1577

nicfre opened this issue Oct 17, 2024 · 2 comments

Comments

@nicfre
Copy link

nicfre commented Oct 17, 2024

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://forum.posit.co/.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.


Brief description of the problem:
I tried to run unite (tidyr package) to combine two columns in a metadata dataframe into one. This worked on a subset dataframe of the same data 10 minutes ago. But now I got an error stating that I should report it to you, since this is an internal error in the tidyr package. I have pasted in the backtrace below and the Error message. The pasted reprex is very short and I am not sure if it should be longer or if this is what I should expect. Hope this is helpful, and let me know if you need more information from me.

Backtrace:

  1. tidyr::unite(...)
  2. tidyr:::unite.data.frame(...)
  3. tidyr:::df_append(after = after)

Error:
Error in df_append():
! after must be a number between 0 and 47, not the number 48.
ℹ This is an internal error that was detected in the tidyr package.
Please report it at https://github.com/tidyverse/tidyr/issues with a reprex and the full backtrace.

https://reprex.tidyverse.org/

    #> Error in parse(text = input): attempt to use zero-length variable name

<sup>Created on 2024-10-17 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup>
@DavisVaughan
Copy link
Member

This is likely fixed in devel tidyr, can you try it? You'd install it with pak::pak("tidyverse/tidyr") then restart R

@nicfre
Copy link
Author

nicfre commented Oct 18, 2024

Thanks! That works!

@nicfre nicfre closed this as completed Oct 18, 2024
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