How to configure and use spell check in Rstudio? In the tools>Global option>spelling I have set the main dictionary language as English(US) and custom dictionary as en_us from "/usr/lib/rstudio/resources/dictionaries/en_US.dic".
Still I do not see any indication (such as red make) on wrong spellings!!
Asked
Active
Viewed 4,372 times
14

d.putto
- 7,185
- 11
- 39
- 45
3 Answers
13
RStudio does not have an as-you-type spell checker; you'll have to invoke spell checking manually. To do this, go to the Edit menu and choose Check Spelling, or press F7.
Note that spell checking is not performed on code files, only on document files (i.e. you won't get spell checking an .R file, but you will in an .Rmd file).

Jonathan
- 8,497
- 41
- 35
-
6Thanks. It is disappointing that spell-check can't be done on .R file. Other editor such as "Eclipse" have this feature. I hope RStudio will include it. – d.putto Jul 28 '15 at 09:46
-
3Indeed. Spellcheck on comments in R files would be a nice addition. – Davor Josipovic Dec 05 '15 at 14:34
-
6as well as "as-you-type" spell checker, would be a nice feature to have – chao Jan 05 '16 at 14:05
-
similar/maybe duplicate post:http://stackoverflow.com/questions/36728061/how-can-i-use-spell-check-in-rmarkdown – Steven M. Mortimer May 16 '17 at 19:11
-
1This response is outdated, R Studio now has spell check in real time. – cach dies Sep 25 '20 at 21:56
2
I recently spotted live, on-the-fly spell checking in OSX v.1.3.118 and later, which can be downloaded from https://dailies.rstudio.com/

Ben
- 41,615
- 18
- 132
- 227
0
If you want to add custom spell checker and want to be persistent across the Rstudio installations, you can create a hunspell dictionary. Here is what I did:

HBat
- 4,873
- 4
- 39
- 56