Use a CWB corpus shipped in a package, or reset registry directory.
use(pkg = NULL, lib.loc = .libPaths(),
dir = getOption("polmineR.defaultRegistry"))
package with a CWB indexed corpus to use (defaults to NULL)
a character vector with path names of R
libraries
a registry directory, defaults to getOption("polmineR.defaultRegistry")
the function returns invisibly the registry that was previously set
If pkg
is the name of a data package with a CWB indexed corpus,
the function will reset the CORPUS_REGISTRY environment variable and restart
rcqp
to point to the registry directory in the package.
If pkg
is NULL (default), calling use
will
reset the registry directory to the directory defined by dir
(defaults to the option polmineR.defaultRegistry
, to return to the registry
that was used when loading polmineR
).
the worker to reset the registry is resetRegistry