notes <- tempfile(fileext = ".csv")
writeLines(
c("site,comment", "A,defined in Darwin1859", "B,see Ebihara 2006"),
notes
)
cz_bare_keys(notes) # "Ebihara 2006" does not matchcharacter(0)
@) citekey-shaped tokens from a text/data fileFor files that reference sources informally (e.g. a CSV “comments” column saying “defined in Dubuisson2013a”). Matches an author-shaped run of letters (hyphens allowed) immediately followed by a 19
/20
year and an optional lowercase disambiguator, e.g. Ebihara2006, Boucheron-Dubuisson2024. Deliberately conservative: Ebihara 2006 or Hsu7949 do not match.
| Arguments | Description |
|---|---|
| path | Path to the file to scan. |
Sorted character vector of unique citekey-shaped tokens.