Skip to contents

Tests whether a corpus has been downloaded (for download-only corpora) or is bundled with the package.

Usage

corpus_exists(corpus)

Arguments

corpus

Character string: name of the corpus.

Value

Logical: TRUE if the corpus is available, FALSE if not downloaded.

Examples

corpus_exists("corpus_beyonce")
#> [1] TRUE