R Aspell homebrew

csta picture csta · Jul 19, 2011 · Viewed 7.4k times · Source

working on a Macbook pro with OS 10.6. I've recently installed the package Aspell with the R package manager and it appears the install went just fine (no install errors). but when I try to use aspell I get the following error,

> aspell("love")
Error in getSpeller() :
  No word lists can be found for the language "en_US".

I also tried

> aspell("love", program = "/usr/local/bin/aspell")

I also installed aspell and hunspell seperately using GitHubs homebrew. When I did install aspell with homebrew I used

brew install aspell --lang=en_US

Is there somewhere I search on my mac to double check that the en_US language was installed? And if I do find that en_US is there, are there any suggestions as to why R is not finding it?

I'm a bit of a newbie when it comes to installation subtleties from sources files. Any help would be much appreciated.

Answer

mmichaa picture mmichaa · Dec 6, 2013

As shown at the bottom of the aspell formula, you can use a --with-lang-#{name} option. In my case, I wanted to install multiple dictionaries: de, en & pl. I did that with this command:

brew install aspell --with-lang-de --with-lang-en --with-lang-pl

To view all available install options use brew info aspell (Thanks Andrew)

The --lang option mentioned in this thread with --lang=de,en,pl didn't work for me.