Closed jonleslie closed 5 years ago
Thanks for flagging this. I now see I was using an old version of readxl
when knitting these docs.
As to how to handle this: the new version of readxl::read_excel()
has the .name_repair
argument and that + the new janitor::make_clean_names()
are perfect for each other. Though it means this is not as good a case for demo'ing clean_names
.
I lean toward addressing this by:
make_clean_names()
and the convenience version clean_names()
for piped data.frame workflows .name_repair = make_clean_names
to the read_excel
call, explaining itiris
data set.The changes would also need to be made to the Index.Rmd file that builds the pkgdown main page.
1) What do you (or anyone else) think about that resolution? 2) Once we agree on #1, if you're up for sending a pull request to implement it, that would be swell. There might still be some tinkering given that it involves a bit of open-ended writing.
Hi, Sam,
Thanks for your response to the above issue. Your solution sounds sensible to me, and I'm very happy to submit a pull request with the proposed changes. I'll aim to turn it around today.
Cheers, Jon
It seems that the demo on the README.md file does not work with Version 2.1.1 of the tibble package, as called from the readxl package. The .name_repair argument causes the example to have column names: Certification --> Certification...9 Certification1 --> Certification...10 Certification2 --> Certification...11
I have made changes to README.rmd to reflect this change, and can submit a pull request for it if you would like me to. I haven't done so yet as per your contributing guidelines, which ask that an issue be raised first.
Created on 2019-04-25 by the reprex package (v0.2.1)