setSpellConfig: Set options in an aspell configuration object

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/aspell.R

Description

This function allows one to

Usage

1
2
setSpellConfig(conf, ..., .values = NULL)
getSpellConfig(conf = createSpellConfig(), ..., .values = NULL)

Arguments

conf

the configuration object, typically of class AspellConfig-class.

...

for interactive use, this allows the caller to specify name = value pairs of options that are to be set in the configuration object.

.values

the programmatic mechanism for specifiying the name-value pairs as a named character vector.

Value

getSpellConfig returns a named list of the current settings for the option values in the configuration.

setSpellConfig returns an integer vector giving the status of the setting each of the specified options.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>

References

http://aspell.sourceforge.net/man-html/The-Options.html#The%20Options http://aspell.sourceforge.net

See Also

getSpeller aspell

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
  conf = createSpellConfig()

  conf$warn
  conf$warn <- FALSE

  conf$warn

  # To append to a list.
  conf$"add-filter" = "email"

 conf$filter <- c("html", "email")
 conf$filter
 #  [1] "url"   "html"  "email"
 conf$warn

   # Will produce an error since warn doesn't support lists.
 try(conf$warn <- c("true", "false"))

omegahat/Aspell documentation built on May 24, 2019, 1:50 p.m.