Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get.sylly.env

Get sylly session settings


Description

The function get.sylly.env returns information on your session environment regarding the sylly package, e.g. whether a cache file should be used, if it was set before using set.sylly.env.

Usage

get.sylly.env(..., errorIfUnset = TRUE)

Arguments

...

Named parameters to get from the sylly environment. Valid arguments are:

lang

Logical, whether the set language should be returned.

hyph.cache.file

Logical, whether the set hyphenation cache file for hyphen should be returned.

hyph.max.token.length

Logical, whether the set maximum token length should be returned.

errorIfUnset

Logical, if TRUE and the desired property is not set at all, the function will fail with an error message.

Details

For the most part, get.sylly.env is a convenient wrapper for getOption.

Value

A character string or list, possibly including:

lang

The specified language

hyph.cache.file

The specified hyphenation cache file for hyphen

See Also

Examples

set.sylly.env(hyph.cache.file=file.path(tempdir(), "cache_file.RData"))
get.sylly.env(hyph.cache.file=TRUE)

sylly

Hyphenation and Syllable Counting for Text Analysis

v0.1-6
GPL (>= 3)
Authors
Meik Michalke [aut, cre]
Initial release
2020-09-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.