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: Column name tidyr::nesting(...)
must not be duplicated.... when using complete
#822
Comments
Do you mean for there to be two separate library(tidyverse)
exdata <- readRDS(url("https://github.com/tidyverse/tidyr/files/3918551/exdata.zip"))
res <- tidyr::complete(
exdata$data,
tidyr::nesting(!!!syms(exdata$set1), !!!syms(exdata$set2))
)
glimpse(res)
#> Rows: 100
#> Columns: 12
#> $ protein_Id <chr> "A0AVT1", "A0AVT1", "A0AVT1", "A0AVT1", "A0…
#> $ peptide_Id <chr> "ACIGDTLCQK", "FISADVHGIWSR", "GMITVTDPDLIE…
#> $ modPeptide_Id <chr> "_AC[+57]IGDTLC[+57]QK_", "_FISADVHGIWSR_",…
#> $ precursor_Id <chr> "_AC[+57]IGDTLC[+57]QK_~2", "_FISADVHGIWSR_…
#> $ isotope <chr> "light", "light", "light", "light", "light"…
#> $ filename <chr> "samon_D1807_098", "samon_D1807_098", "samo…
#> $ sampleName <chr> "CMP/MEP~patient.HU.yes~PID282", "CMP/MEP~p…
#> $ celltype_ <chr> "CMP/MEP", "CMP/MEP", "CMP/MEP", "CMP/MEP",…
#> $ class_therapy_progressed_ <fct> patient.HU.yes, patient.HU.yes, patient.HU.…
#> $ Patient_ID <chr> "PID282", "PID282", "PID282", "PID282", "PI…
#> $ FG.Quantity <dbl> 104890.961, 63959.547, 56562.879, 7808.923,…
#> $ EG.Qvalue <dbl> 9.568321e-04, 1.262353e-04, 5.092613e-04, 8… Created on 2019-12-04 by the reprex package (v0.3.0.9001) Adding backtrace for the code as you have it, above.
|
@batpigandme NO |
Ok, I'm gonna go ahead and close this issue, then. Let me know if I've misunderstood. |
Yes you missunderstood. |
Ok. Can you please expand on what you mean, then? What's your expected output?
|
NO - the issue is not me using two nesting statements! The issue is that the code as posted in the first snipped does not work - and I can't see a reason why it should not work as it is (but this is clearly stated in my first post I believed - and did't I state that it was working with a pre 1.0 version of tidyr?). The expected output is that the first code snipped works, that it does not throw an error (obviously), and that the output is equal (what might be different is the column order) to the result of code snipped 2, which does still work. |
@wolski I can tell that you are frustrated but that does not make it ok to be rude. It is hard to tell what you are trying to achieve, and @batpigandme has been trying to help figure out exactly what the problem is. |
@hadley This is unfair! I am also trying to help. All I was asking is why code, which I think should work does not. I invested quite a bit of time creating the issue, testing the code, included a reprex and even an example where it works. |
@wolski responding "NO" to an attempt to help comes across as very rude. I can see that you have put some time in to this issue, but you have failed to explain it to us in a way we understand. I am going to close this issue to give every one time to cool off; please feel free to open a new one next week. |
@hadley The "NO" is rude? "The pot calling the kettle black". Here it
was afternoon or evening when I started to reply to @batpigandme question. I was
alone at home with two kids 2 and 7 years old. They needed something,
so I saved my reply. Ten minutes later when I get back to the issue I
see that the issue which I spend several hours preparing is closed. I
find the time to say that it is misunderstanding and later a bit more time to answer.
And than I am being called rude twice. I was not but now you got me frustrated.
For sure I am not going to reopen the issue.
|
After lately updating several packages including
tidyr
this code stopped workingand throws the follwing error:
Error: Column name
tidyr::nesting(...)must not be duplicated. Use .name_repair to specify repair.
Just changing the order of the columns
[c(5,1:4)]
in second nesting directive makes it work again (why? - seems to me a spurious change which should not change the behaviour ofcomplete
).The text was updated successfully, but these errors were encountered: