Learn R Programming

GermaParl (version 1.5.2)

germaparl_get_version: Get GERMAPARL version

Description

germaparl_get_version is an auxiliary function that extracts the version of the GERMAPARL corpus from the registry.

Usage

germaparl_get_version(
  registry_dir = Sys.getenv("CORPUS_REGISTRY"),
  sample = FALSE
)

Arguments

registry_dir

Path to the registry directory.

sample

If TRUE, work with GERMAPARLSAMPLE corpus, if FALSE (default), use GERMAPARL corpus.

Value

The return value is the version of the corpus (class numeric_version). If the corpus has not yet been installed, NULL is returned, and a warning message is issued.

See Also

See the examples section of the overview documentation of the GermaParl package for an example.