Description Usage Arguments Details Value See Also Examples
View source: R/set.sylly.env.R
The function set.sylly.env
can be called before any of the hyphenation functions. It writes information
on your current session's settings to your global .Options
.
1 | set.sylly.env(..., validate = TRUE)
|
... |
Named parameters to set in the sylly environment. Valid arguments are:
To explicitly unset a value again, set it to an empty character string (e.g.,
|
validate |
Logical,
if |
To get the current settings, the function get.sylly.env
should be used. For the most part, set.sylly.env
is a convenient wrapper for
options
. To permanently set some defaults, you could also add
respective options
calls to an .Rprofile
file.
Returns an invisible NULL
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | set.sylly.env(hyph.cache.file=file.path(tempdir(), "cache_file.RData"))
get.sylly.env(hyph.cache.file=TRUE)
## Not run:
# example for setting permanent default values in an .Rprofile file
options(
sylly=list(
hyph.cache.file=file.path(tempdir(), "cache_file.RData"),
lang="de"
)
)
# be aware that setting a permamnent default language without loading
# the respective language support package might trigger errors
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.