0

I want to write a report in rmarkdown or rsweave, but I need an automatic spell checker in spanish. The document I am writing has the following sentence in Spanish: La niña ve películas de ciencia ficcion cuando llueve. The spell checker works but for English texts. See this link How can I use spell check in Rmarkdown?. There is some way to use the spell checker but in Spanish, since the correct word in Spanish is ficción with ó not fiction as it comes out by clicking on ABC or using F7

enter image description here

How can I solve this problem?

Rafael Díaz
  • 2,134
  • 2
  • 16
  • 32

1 Answers1

7

First go to Tools-> Global options -> Spelling. Then install the dictionary in Spanish and click on apply.

enter image description here

Now you can open a new file in rmarkdown or rsweave. And have an automatic spelling corrector by clicking on ABC. I think it's very useful for the entire Spanish-speaking community that uses Rstudio to make reports.

enter image description here

Rafael Díaz
  • 2,134
  • 2
  • 16
  • 32