Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to spellcheck R comments with RStudio on R source files?

Tags:

rstudio

How to conveniently spellcheck R comments with RStudio on R source files?

I am writing a package and I want it to look professional. Thanks to Oxygen, all package's documentation lives in R comments, which by default is excluded from spell checking. So even if spell checking functionality does exist in RStudio, I don't know how to use it.

like image 389
Adam Ryczkowski Avatar asked Jul 22 '16 08:07

Adam Ryczkowski


2 Answers

The spelling package is great for this: https://github.com/ropensci/spelling.

devtools::install_github("ropensci/spelling")
spelling::spell_check_package() # path to package Project
like image 165
shiro Avatar answered Oct 03 '22 22:10

shiro


RStudio 1.3 will include this feature; and it is possible to already try it out.

like image 34
Gorp Avatar answered Oct 03 '22 22:10

Gorp