If pkg is the name of a data package with a CWB indexed corpus,
the function will reset the CORPUS_REGISTRY environment variable and
re-direct the interfacing libraries (RcppCWB or rcqp) to the registry
directory in the package. The registry directory is assumed to be the
./extdata/cwb/registry subdirectory of the installed 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).
When resetting the registry directory, templates for formatting fulltext
output are reloaded.