Learn R Programming

polmineR (version 0.7.4)

use: Use a packaged corpus.

Description

Use a CWB corpus shipped in a package, or reset registry directory.

Usage

use(pkg = NULL, lib.loc = .libPaths(),
  dir = getOption("polmineR.defaultRegistry"))

Arguments

pkg

package with a CWB indexed corpus to use (defaults to NULL)

lib.loc

a character vector with path names of R libraries

dir

a registry directory, defaults to getOption("polmineR.defaultRegistry")

Value

the function returns invisibly the registry that was previously set

Details

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).

See Also

the worker to reset the registry is resetRegistry