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

Spell checking #1166

Closed
jeroen opened this issue Aug 18, 2018 · 4 comments
Closed

Spell checking #1166

jeroen opened this issue Aug 18, 2018 · 4 comments

Comments

@jeroen
Copy link

jeroen commented Aug 18, 2018

To run a spell check on all Rmd files:

spell_check_files(list.files(pattern=".Rmd"), lang = 'en-GB')

Mostly false positives but a few hits:

  WORD                   FOUND IN
absense                base-types.Rmd:117
analog                 beyond-exception-handling.Rmd:271
                       Functionals.Rmd:478
arugment               Evaluation.Rmd:499
attibute               Translation.Rmd:176
...

We can also automate this if you'd like.

@hadley
Copy link
Owner

hadley commented Aug 20, 2018

Hmmm, I kind of like fixing spelling mistakes as an easy intro to doing a PR with github. But would be worth doing prior to release.

@hadley
Copy link
Owner

hadley commented Dec 12, 2018

@jeroen has anyone plumbed this up with rstudioapi to automatically jump to the correct line?

@jeroen
Copy link
Author

jeroen commented Dec 12, 2018

No not yet. If I remember correctly there was an unsolved issue with getting the source line numbers from roxygen2 comment documentation, so we are still spelling checking from the .Rd files.

@jeroen
Copy link
Author

jeroen commented Dec 12, 2018

Actually that only holds for the manual documentation, perhaps this doesn't matter for markdown files. Anyway afaik no rstudioapi support yet.

hadley added a commit that referenced this issue Dec 12, 2018
@hadley hadley closed this as completed in 5b2e316 Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants