Skip to contents

Suitable for Connector A corpora that expose a delimited file. The URL's scheme is checked first; the transfer then lands in a sidecar file that is renamed into place only after the size cap, the markup sniff and any sha256 the registry entry carries have all passed. The download is recorded so it can be cited; consult list_corpora() for the citation.

Usage

fetch_corpus(name, registry_path = NULL, dest = NULL)

Arguments

name

A corpus name present in the registry.

registry_path

Optional path to registry.yaml.

dest

Optional destination path; defaults to the cache.

Value

The path to the downloaded file, invisibly.

Details

The file lands in lexsync_cache_dir() unless dest names somewhere else. That cache persists between sessions and the package never prunes it; one corpus may reach the 200 MB download cap, so several of them add up. Nothing kept there is irreplaceable, so the directory may be deleted at any time and the next call downloads the corpus again.