Skip to contents

Prints formatted citations for the taxonomic backbone(s), enrichment layers, and the taxify package itself. Optionally writes a BibTeX file.

Usage

cite(x, file = NULL)

Arguments

x

A taxify_result object.

file

Optional file path. If provided, BibTeX entries are written to this file (extension should be .bib).

Value

x, invisibly (pipe-friendly).

Examples

old <- options(taxify.data_dir = taxify_example_data())

result <- taxify("Quercus robur", backbone = "wfo")
result |> cite()
result |> cite(file = tempfile(fileext = ".bib"))

options(old)