Auxiliary function to detect whether GERMAPARL is installed or not.

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

Arguments

registry_dir

Path to the registry directory.

sample

A logical value. If FALSE (default), the GERMAPARL corpus will be used, if TRUE, the GERMAPARLSAMPLE corpus will be used.

Value

TRUE if the corpus has been installed, and FALSE if not.

See also

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