The registry_move
is an auxiliary function to create a copy
of a registry file in the directory specified by the argument
registry_new
.
Upon loading the polmineR package, there is a check whether the
environment variable CORPUS_REGISTRY
is defined. In case it is, the
registry files in the directory defined by the CORPUS_REGISTRY
environment variable are copied to the temporary registry directory, which
serves as the central place to store all registry files for all corpora, be
it system corpora, corpora included in R packages, or temporary corpora.
The Corpus Workbench may have problems to cope with a registry path
that includes registry non-ASCII characters. On Windows, a call to
utils::shortPathName
will generate the short MS-DOS path name that
circumvents resulting problems.