A function to set information on your koRpus environment
The function set.kRp.env
can be called before any of the analysing functions. It writes information
on your session environment regarding the koRpus package,
e.g. path to a local TreeTagger installation,
to your global .Options
.
set.kRp.env(..., validate = TRUE)
... |
Named parameters to set in the koRpus 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.kRp.env
should be used. For the most part, set.kRp.env
is a convenient wrapper for
options
. To permanently set some defaults, you could also add
respective options
calls to an .Rprofile
file.
Note that you can also suppress the startup message informing about available.koRpus.lang
and install.koRpus.lang
by adding noStartupMessage=TRUE
to the options in .Rprofile
.
Returns an invisible NULL
.
set.kRp.env(lang="en") get.kRp.env(lang=TRUE) ## Not run: set.kRp.env( TT.cmd=file.path("~","bin","treetagger","cmd","tree-tagger-german"), lang="de" ) # example for setting permanent default values in an .Rprofile file options( koRpus=list( TT.cmd="manual", TT.options=list( path=file.path("~","bin","treetagger"), preset="de"), lang="de", noStartupMessage=TRUE ) ) # be aware that setting a permamnent default language without loading # the respective language support package might trigger errors ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.