-
Notifications
You must be signed in to change notification settings - Fork 130
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
Upkeep proposition / spring cleaning #549
Comments
Thanks for this help! I like all of this except for the snapshot tests. I don't prefer snapshot tests because they don't fail on CRAN. I prefer explicit tests for messages with regular expressions or specific examples so that we always know that we are testing exactly what we intend to test. For the error messages, I'd prefer using I definitely think we should remove the superseded function use, if reasonable. We will need to be careful of functional changes when switching to the new functions. @sfirke, what are your thoughts? |
Good! I will try opening PRs when #548 is merged to avoid unnecessary conflicts as much as possible!
Since dplyr already imports cli, it wouldn't add a dependency to janitor (although it would have to be explicitly put in Edit: See https://rlang.r-lib.org/reference/topic-condition-formatting.html?q=abort#enabling-cli-formatting-globally for a solution to avoid explicitly importing cli.
For sure! It may be when other packages extend janitor and try to apply functions to an object of a different class. Maybe we should wait until the next release for that, to see if #547 caused breakages. FWIW, when I tried switching from |
This all sounds great to me! I appreciate the thoughtful contributions and the way you are going about it (discussion first) 🙏 I'd defer to you two on Agreed re: swapping out Only other thought is let's go one PR at a time for these to break things into manageable chunks. |
@billdenney let me know what you think Edit: See https://rlang.r-lib.org/reference/topic-condition-formatting.html?q=abort#enabling-cli-formatting-globally for a solution to avoid explicitly importing cli.
Yes, of course. I will start once the styling PR (#548) is merged! Thanks btw for adding a GitHub action to ensure consistent styling |
I think that I think that we are ready to merge the styling PR, but I will defer to @sfirke for the final merge. |
#548 is merged! I'll be curious to see if the auto-styler runs correctly on the next PR. Maybe leave a trailing space or something to provoke it 😉 |
So as mentioned in #551, the style action failed when I added a commit that was not correctly styled. (since I don't have write access. But that if some code is left "unstyled" at the end of a PR, I assume that when you merge in the main branch, it adds a commit to restyle automatically (which is what is intended, Edit there is possibly this
|
Potential things that could be done too!
library(diffviewer) # A r-lib package
# Will open an html widget in RStudio to visualize the diff between index and README
# You will see the only additional things in index.md seem to be outdated.
diffviewer::visual_diff(
file_old = "index.md",
file_new = "README.md",
height = Inf,
width = "100%"
)
Thanks for letting me experiment a little! I like your package, it is used, and not too complex. Don't feel pressured to answer right away, and let me know if it is too much! |
@olivroy, I really appreciate the "let me know if it is too much"! 😄 I don't think it's too much, and you're helping with some beneficial spring cleaning which many packages could benefit from. For index.Rmd/README, if we can maintain things in one place, I think that is helpful. So, I'd go for it as long as all the appropriate information is saved from both. (@sfirke, you have shouldered the load of this type of documentation-- is there anything unique remaining in index.Rmd?) I'm neutral for the inclusion of |
Thanks for your help on this ! Truly appreciated |
Hi,
I would have a couple suggestions to improve janitor
Let me know what you think and I can open PRs for the things you think are relevant!
Roxygen: list(markdown = TRUE)
inDESCRIPTION
to simplify the documentation (Documention with markdown and remove mentions to master branch #551)@title
,@description
etc. ,\{code}
and (Documention with markdown and remove mentions to master branch #551)[fun]
(Tweaks to docs + wrap long lines + add function index #559)@inheritParams
to avoid doc duplication (TODO later)orrlang::abort()
cli::cli_abort()
anduse more snapshot tests to capture themhttps://style.tidyverse.org/error-messages.html (Improve error messages with cli #560)tidyr::spread()
#552)Edit:
_pkgdown.yml
so that functions are organized on the site https://sfirke.github.io/janitor/reference/index.html (see https://dplyr.tidyverse.org/reference/index.html for an example)@keywords internal
to make sure hard deprecated functions don't show up in the package reference (Documention with markdown and remove mentions to master branch #551)index.md
and make README.md to website homepage (Make README.md the home index of the pkgdown site + fix unintended change intabyl()
#554)The text was updated successfully, but these errors were encountered: