-
Notifications
You must be signed in to change notification settings - Fork 4
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
DISCUSSION: Spell checks #129
Comments
Moving to admiralci. @cicdguy can we move this to tests? |
Up to you. Then you'll probably need to add |
ah - that is a good point...maybe CI check is the best as we just got rid of |
Good point @cicdguy about needing to add spelling to Suggests. This is a pretty mild point of discussion: making the change or leaving it as it is are both fine. But could be a place where we can simplify the CI/CD workflow and move admiral to be more in-line with how the R community does it without the need to reference various renv profiles. Perhaps related, @bms63 and I saw some strange Spelling workflow behavior in PR pharmaverse/admiral#1994 , where the Spelling workflow was failing. But when we added the misspelled words to the WORDLIST, the spelling package also removed "unused" words that resulted in the workflow failing. |
I don’t think renv profiles are used in workflows?? @cicdguy am I mistaken? I’m partial to leaving as is but Let’s just table for now and revisit after we simplify the branching strategy. |
I think the renv profiles are used for containers and codespaces. |
The test dir is not check for package usage in R CMD check, it should not display NOTES. We are able to add the spell check with Example:
I'm a fan of keeping all check in test, but I think in some cases, we should verify performance, e.g. checking all files with lintr can take a lot of time. We can start with adding the spell check. Should these check be propagated from admiralci? What do you think? |
The standard workflow is to add a if(requireNamespace('spelling', quietly = TRUE))
spelling::spell_check_test(vignettes = TRUE, error = FALSE, skip_on_cran = TRUE) By default the tests are skipped on CRAN. We can change |
@ddsjoberg as spelling is separate ci job we should add |
This could perhaps be an opportunity to simplify/reduce our CI/CD workflow? If we use the same structure suggested in the R Packages Book and implemented via usethis/spelling, the spelling CIs would no longer be needed and the spell checks would be wrapped in the R CMD Checks |
I agree, in that case, we need to add |
Background Information
Can we discuss the spell checks? I see there is a workflow for this. But the spell checks are something I would expect to see in the test folder. If we can stick with the typical structure, I think we should. If not, it will be helpful to understand the current structure.
Definition of Done
No response
The text was updated successfully, but these errors were encountered: