Skip to contents

Inserts note = {RETRACTED: <reason>} into every flagged entry that does not already carry a RETRACTED note.

Usage

annotate_bib(bib_path, x, out_path = NULL)

Arguments

bib_path

Path to the source .bib file.

x

A retraction_result from checking that file (its id values must be the BibTeX keys).

out_path

Where to write the annotated file. Defaults to "<name>-annotated.bib" next to the source.

Value

Invisibly, out_path.

Examples

if (FALSE) { # \dontrun{
res <- check_file("refs.bib")
annotate_bib("refs.bib", res)
} # }