Hi Kevin thanks for the great work! Yes, if you look very hard you can find some stuff discussing R and aspell. But not much.
Within R, aspell() is a function found in the "utils" package which ships with every release of R. The canonical reference from the R-core team is: https://stat.ethz.ch/R-manual/R-devel/library/utils/html/aspell.html It would be great if you could include a link to the page above from your page at: http://aspell.net/man-html/Using-Aspell-with-other-Applications.html#Using- Aspell-with-other-Applications A few interesting notes: 1. The utils::aspell function built into R doesn't work out of the box. GNU aspell has to be installed, as well as a dictionary. Otherwise you'll get various errors such as "no suitable spell checker found". 2. The R-help pages give instructions on how to use aspell to check files in the local directory, not R-objects within the R-environment. To spell-check R-objects (e.g. character vectors, dataframe columns, etc.), you need to first convert the R-object to a factor using a function such as as.factor(), and then proceeding with spell checking. 3. "Aspell" (capitalized) from the omegahat.org site is a different package from the built-in "aspell" (lowercase) function. Once GNU aspell is installed you can actually do spell-checking without omegahat "Aspell", but it does provide additional, powerful control over aspell function. Also, Aspell (capitalized) appears to offer replacement word suggestions right out of the box. HTH, Bill. On Thu, Feb 26, 2015 at 11:24 PM, Kevin Atkinson <[email protected]> wrote: > Hi William, > > You can't use Aspell directly in R; however, it looks like there is at > least one or more packages for using Aspell within R. Googling "Aspell R" > lead to several promising results: > > Aspell package for R: www.omegahat.org/Aspell/ > > aspell {utils} | inside-R | A Community Site for R: > http://www.inside-r.org/r-doc/utils/aspell > > R: Spell Check Interface: > https://stat.ethz.ch/R-manual/R-devel/library/utils/html/aspell.html > > I have never tried any of these packages so I am afraid you are on your > own. I better place to ask would be inside the R community. > > Kevin > > On Thu, 26 Feb 2015, William Michels wrote: > > HI I want to thank you for this fantastic Aspell program!! I just got it >> working in the R-programming environment (www.r-project.org).This is >> cool! >> I just analyzed a NOAA database in seconds. >> >> Ive looked around and it doesn't seem that you have a help page on using >> Aspell in R. >> >> http://aspell.net/man-html/Using-Aspell-with-other- >> Applications.html#Using-Aspell-with-other-Applications >> >> Do you want me to write something up? >> >> Thanks, Bill >> >> William Michels, Ph.D. >> Assistant Research Biochemist, UCSF (former) >> >>
_______________________________________________ Aspell-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/aspell-devel
