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

Add dictionary argument to spell_check #1335

Closed
wants to merge 3 commits into from
Closed

Add dictionary argument to spell_check #1335

wants to merge 3 commits into from

Conversation

jeroen
Copy link
Member

@jeroen jeroen commented Sep 9, 2016

You can now use a custom language in spell_check for example:

spell_check(dict = "en_GB")

Also hunspell is now entirely self-contained (it has zero system dependencies) so I think we can just import it. Also added a feature that will automatically check documentation on release (as suggested by @hadley ).

Hopefully this will encourage users to eliminate typo's from documentation :)

@jimhester
Copy link
Member

@hadley may disagree, but I would prefer keeping this in Suggests:, while it is self-contained it still requires compilation and will be unused functionality for the vast majority of builds on the CIs, where we are trying to lighten the devtools dependency load.

@jeroen
Copy link
Member Author

jeroen commented Sep 9, 2016

Right, I don't disagree with that. Though it would be nice to run a full documentation spell check by default during CI builds and release(). It works really well :-)

@hadley
Copy link
Member

hadley commented Sep 9, 2016

Let's leave it in suggests for now, and we can move into imports once we've extracted the stuff CI tools needs into a separate package.

@jeroen
Copy link
Member Author

jeroen commented Sep 9, 2016

OK it's back in suggests now.

@@ -60,6 +62,14 @@ release <- function(pkg = ".", check = TRUE, args = NULL) {
return(invisible())
}

if (length(spelling)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please move this to check-devtools.r, following the template in release_checks()?

@jimhester jimhester added this to the 1.13.0 milestone May 3, 2017
@jimhester
Copy link
Member

Thanks! Merged in 3af9cca

@jimhester jimhester closed this May 17, 2017
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

Successfully merging this pull request may close these issues.

3 participants