germaparl_get_version is an auxiliary function that extracts
the version of the GERMAPARL corpus from the registry.
germaparl_get_version(
registry_dir = Sys.getenv("CORPUS_REGISTRY"),
sample = FALSE
)Path to the registry directory.
If TRUE, work with GERMAPARLSAMPLE corpus, if
FALSE (default), use GERMAPARL corpus.
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 the examples section of the overview documentation of the GermaParl package for an example.