R Aspell自制 [英] R Aspell homebrew

查看:102
本文介绍了R Aspell自制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在装有OS 10.6的Macbook pro上工作. 我最近使用R软件包管理器安装了Aspell软件包,看来安装进行得很好(没有安装错误).但是当我尝试使用aspell时,出现以下错误,

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".

我也尝试过

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

我还使用GitHub的自制软件分别安装了aspell和hunspell.当我使用自制软件安装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

我是否在Mac上的某个地方进行搜索以仔细检查是否已安装en_US语言?而且,如果我确实找到了en_US,是否有关于R为什么找不到它的建议?

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.

推荐答案

已经过去了很多时间,但是我最近遇到了同样的问题,而解决方法是:

A lot of time has gone by, but I recently had the same problem and the fix was:

brew remove aspell
brew install aspell --lang=en

在原始的brew安装中,我应该多加注意:

I should have paid more careful attention when this flew by in the original brew install:

词典不会自动安装,请指定 您希望与字典一起安装的语言 --lang选项,例如:%brew install aspell --lang = en,es

Dictionaries are not automatically installed, please specify the languages for which you want dictionaries to be installed with the --lang option, e.g: % brew install aspell --lang=en,es

对于以下语言,可以使用拼写字典:af,am, ar,ast,az,be,bg,bn,br,ca,cs,csb,cy,da,de,de_alt,el,en, eo,es,et,fa,fi,fo,fr,fy,ga,gd,gl,grc,gu,gv,he,hi,hil, hr,hsb,hu,hy,ia,id,是,kn,ku,ky,la,lt,lv,mg,mi,mk, ml,mn,mr,ms,mt,nb,nds,nl,nn,ny或pa,pl,pt_BR,pt_PT,qu, ro,ru,rw,sc,sk,sl,sr,sv,sw,ta,te,tet,tk,tl,tn,tr,英国, uz,vi,wa,yi,zu

For the following languages aspell dictionaries are available: af, am, ar, ast, az, be, bg, bn, br, ca, cs, csb, cy, da, de, de_alt, el, en, eo, es, et, fa, fi, fo, fr, fy, ga, gd, gl, grc, gu, gv, he, hil, hr, hsb, hu, hy, ia, id, is, it, kn, ku, ky, la, lt, lv, mg, mi, mk, ml, mn, mr, ms, mt, nb, nds, nl, nn, ny, or, pa, pl, pt_BR, pt_PT, qu, ro, ru, rw, sc, sk, sl, sr, sv, sw, ta, te, tet, tk, tl, tn, tr, uk, uz, vi, wa, yi, zu

这篇关于R Aspell自制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆