Auxiliary function that extracts the DOI (Document Object Identifier) from the registry file of the GERMAPARL corpus.
germaparl_get_doi(registry_dir = Sys.getenv("CORPUS_REGISTRY"), sample = FALSE)
Path to the registry directory.
A logical
value, if FALSE
(default), use
GERMAPARL, if TRUE
, use GERMAPARLSAMPLE.
If the DOI is declared in the registry file, a length-one
character
vector with it is returned. If the corpus has not yet been
installed, NULL
is returned and a warning will be issued.
See the examples section of the overview documentation of the GermaParl package for an example.