问题描述
尽管功能aspell
是utils
软件包的标准配置,但它似乎不适用于我.我继续遇到相同的错误:
Although the function aspell
comes standard with the utils
package, it doesn't seem to work for me. I keep on getting the same error:
aspell("love")
Error in aspell("love") : No suitable spell-checker program found
有什么想法吗?
> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Dutch_Belgium.1252 LC_CTYPE=Dutch_Belgium.1252
[3] LC_MONETARY=Dutch_Belgium.1252 LC_NUMERIC=C
[5] LC_TIME=Dutch_Belgium.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
推荐答案
对于初学者来说,功能aspell("love")
是不合适的.请在 inside-r.org 中引用正确的函数调用.但是,这不是您的大障碍.出现No suitable spell-checker program found
错误的原因是,正如您和@juba所暗示的那样,缺少aspell()的安装.请考虑以下因素以进行正确的安装.
For starters, the function aspell("love")
is improper. Please reference the correct function call at inside-r.org. This is, however, not your big obstacle. The reason you are getting the No suitable spell-checker program found
error is because, as you and @juba have hinted to here, your installation of aspell() is lacking. Please consider the following for proper installation.
第1步.通过以下链接下载Aspell Win32(是的,很古老) http://ftp.gnu. org/gnu/aspell/w32/Aspell-0-50-3-3-Setup.exe
Step 1. Download Aspell Win32 from following link (Yes, it's ancient)http://ftp.gnu.org/gnu/aspell/w32/Aspell-0-50-3-3-Setup.exe
第2步.在Appdata漫游文件夹中安装Aspell Win32(手动创建SpellCheckers父文件夹可能会很方便)
Step 2. Install Aspell Win32 in Appdata roaming folder (it may be convenient to create a SpellCheckers parent folder before hand)
第3步.将Aspell Win32添加到Windows PATH. 了解如何将变量添加到系统路径.在我们的示例中,键入C:\Users\UrPC\AppData\Roaming\SpellCheckers\Aspell\bin\
,其中 UrPC 是您的PC的名称.
Step 3. Add Aspell Win32 to the Windows PATH. Learn how to add variables to your system path. In our example, typeC:\Users\UrPC\AppData\Roaming\SpellCheckers\Aspell\bin\
, where UrPC is the name of your PC.
第4步.通过多次单击确定"并退出高级系统属性对话框,确认此环境变量编辑,
Step 4. Confirm this environment variable edit by clicking OK several times and exiting the advanced systems property dialogue,
第5步.从以下链接下载Aspell词典(我不认为较新的版本可以工作,但谁知道) http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe
Step 5. Download Aspell dictionary from following link (I don't believe newer versions will work but who knows)http://ftp.gnu.org/gnu/aspell/w32/Aspell-en-0.50-2-3.exe
第6步.在任何目录中运行Aspell词典安装程序",它将自身解压缩到同一目录中名为TmpInstall
的文件夹中.
Step 6. In any directory run the Aspell dictionary 'installer' and it will unpack itself to a folder called TmpInstall
in the same directory.
第7步.打开TmpInstall
文件夹并运行setup-Aspell-en-0.50-2.exe.它应该根据我们在步骤3中添加的系统路径自动检测Aspell Win32的安装位置.否则,请继续执行步骤8.
Step 7. Open the TmpInstall
folder and run setup-Aspell-en-0.50-2.exe. It should auto detect where your Aspell Win32 installation is based on the system path we added in Step 3. If not, proceed to Step 8.
第8步.打开Windows PowerShell并输入单词aspell
Step 8. Open windows PowerShell and type the word aspell
您应该看到命令信息在提示符下呕吐.如果您不这样做,则可能输入了错误的PATH信息(并需要对其进行修复)或需要重新启动Windows.如果这样做仍然引发错误,请考虑附录.
You should see command information vomit down your prompt. If you don't you may have entered the PATH information incorrectly (and need to fix it) or need to restart Windows. If after doing this you still throw an error, consider the Appendix.
附录:如果先前已卸载Aspell,则可能需要删除其孤立的注册表项.运行regedit.exe并搜索aspell.删除与已卸载的aspell目录关联的所有aspell密钥.请务必小心,不要无意地更改除了所讨论的aspell键以外的任何内容,因为无意中删除某些内容可能会使您进入Windows Hell.
Appendix: If Aspell was previously uninstalled you may need to delete it's orphaned registry key. Run regedit.exe and search for aspell. Delete any aspell key associated with an uninstalled aspell directory. Be very careful not to unintentionally change anything other than the aspell key in question as deleting something by accident could send you to Windows Hell.
这是该过程的扩展,扩展为在Windows上安装Hunspell
This wisdom is an extension of the procedure to install Hunspell on Windows
祝你好运!
这篇关于拼写错误:找不到合适的拼写检查程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!