Skip to contents

Returns the file path to a corpus, if it exists. For bundled corpora, returns NA.

Usage

corpus_path(corpus)

Arguments

corpus

Character string: name of the corpus.

Value

Character string: path to corpus file, or NULL if not downloaded (or NA for bundled corpora).

Examples

corpus_path("corpus_beyonce")
#>  Corpus corpus_beyonce is bundled with the package.