Bibtex keys appear to just be formatted as just "[author surbname]_[year]". That is, last name of first author and year, separated by an underscore character. This commonly generates non-unique keys for multiple publications by the same author in the same year, which is a common occurrence for many use cases (for instance, the example given in the rorcid package is to extract the DOI information for all publications from a given author, and then use the rcrossref package to generate a bibtex file from that list of DOIs). The lack of non-unique keys poses a problem when attempting to refer to specific references by their key.
My current workaround is to use the RefManageR package to make the entries unique.
Bibtex keys appear to just be formatted as just "[author surbname]_[year]". That is, last name of first author and year, separated by an underscore character. This commonly generates non-unique keys for multiple publications by the same author in the same year, which is a common occurrence for many use cases (for instance, the example given in the
rorcid
package is to extract the DOI information for all publications from a given author, and then use thercrossref
package to generate a bibtex file from that list of DOIs). The lack of non-unique keys poses a problem when attempting to refer to specific references by their key.My current workaround is to use the
RefManageR
package to make the entries unique.Session Info
```r - Session info --------------------------------------------------------------- setting value version R version 4.0.3 (2020-10-10) os Windows 10 x64 system x86_64, mingw32 ui RTerm language (EN) collate English_Australia.1252 ctype English_Australia.1252 tz Australia/Brisbane date 2021-01-27 - Packages ------------------------------------------------------------------- package * version date lib source assertthat 0.2.1 2019-03-21 [1] CRAN (R 4.0.3) base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.0.3) bibliometrix * 3.0.3 2020-09-28 [1] CRAN (R 4.0.3) bibtex * 0.4.2.3 2020-09-19 [1] CRAN (R 4.0.3) callr 3.5.1 2020-10-13 [1] CRAN (R 4.0.3) cellranger 1.1.0 2016-07-27 [1] CRAN (R 4.0.3) cli 2.2.0 2020-11-20 [1] CRAN (R 4.0.3) cluster 2.1.0 2019-06-19 [2] CRAN (R 4.0.3) colorspace 2.0-0 2020-11-11 [1] CRAN (R 4.0.3) crayon 1.3.4 2017-09-16 [1] CRAN (R 4.0.3) crul 1.0.0 2020-07-30 [1] CRAN (R 4.0.3) curl 4.3 2019-12-02 [1] CRAN (R 4.0.3) data.table 1.13.4 2020-12-08 [1] CRAN (R 4.0.3) desc 1.2.0 2018-05-01 [1] CRAN (R 4.0.3) devtools 2.3.2 2020-09-18 [1] CRAN (R 4.0.3) digest 0.6.27 2020-10-24 [1] CRAN (R 4.0.3) dimensionsR 0.0.2 2020-08-28 [1] CRAN (R 4.0.3) dplyr 1.0.2 2020-08-18 [1] CRAN (R 4.0.3) DT 0.16 2020-10-13 [1] CRAN (R 4.0.3) ellipsis 0.3.1 2020-05-15 [1] CRAN (R 4.0.3) evaluate 0.14 2019-05-28 [1] CRAN (R 4.0.3) factoextra 1.0.7 2020-04-01 [1] CRAN (R 4.0.3) FactoMineR 2.4 2020-12-11 [1] CRAN (R 4.0.3) fansi 0.4.1 2020-01-08 [1] CRAN (R 4.0.3) farver 2.0.3 2020-01-16 [1] CRAN (R 4.0.3) fastmap 1.0.1 2019-10-08 [1] CRAN (R 4.0.3) fauxpas 0.5.0 2020-04-13 [1] CRAN (R 4.0.3) flashClust 1.01-2 2012-08-21 [1] CRAN (R 4.0.3) forcats 0.5.0 2020-03-01 [1] CRAN (R 4.0.3) foreign 0.8-80 2020-05-24 [2] CRAN (R 4.0.3) fs 1.5.0 2020-07-31 [1] CRAN (R 4.0.3) generics 0.1.0 2020-10-31 [1] CRAN (R 4.0.3) ggforce 0.3.2 2020-06-23 [1] CRAN (R 4.0.3) ggplot2 3.3.2 2020-06-19 [1] CRAN (R 4.0.3) ggraph 2.0.4 2020-11-16 [1] CRAN (R 4.0.3) ggrepel 0.8.2 2020-03-08 [1] CRAN (R 4.0.3) glue 1.4.2 2020-08-27 [1] CRAN (R 4.0.3) graphlayouts 0.7.1 2020-10-26 [1] CRAN (R 4.0.3) gridExtra 2.3 2017-09-09 [1] CRAN (R 4.0.3) gtable 0.3.0 2019-03-25 [1] CRAN (R 4.0.3) haven 2.3.1 2020-06-01 [1] CRAN (R 4.0.3) hms 0.5.3 2020-01-08 [1] CRAN (R 4.0.3) htmltools 0.5.0 2020-06-16 [1] CRAN (R 4.0.3) htmlwidgets 1.5.3 2020-12-10 [1] CRAN (R 4.0.3) httpcode 0.3.0 2020-04-10 [1] CRAN (R 4.0.3) httpuv 1.5.4 2020-06-06 [1] CRAN (R 4.0.3) httr 1.4.2 2020-07-20 [1] CRAN (R 4.0.3) igraph 1.2.6 2020-10-06 [1] CRAN (R 4.0.3) installr * 0.22.0 2019-08-02 [1] CRAN (R 4.0.3) IRdisplay 0.7.0 2018-11-29 [1] CRAN (R 4.0.3) IRkernel 1.1.1 2020-07-20 [1] CRAN (R 4.0.3) jsonlite 1.7.2 2020-12-09 [1] CRAN (R 4.0.3) knitr 1.30 2020-09-22 [1] CRAN (R 4.0.3) later 1.1.0.1 2020-06-05 [1] CRAN (R 4.0.3) lattice 0.20-41 2020-04-02 [2] CRAN (R 4.0.3) leaps 3.1 2020-01-16 [1] CRAN (R 4.0.3) lifecycle 0.2.0 2020-03-06 [1] CRAN (R 4.0.3) lubridate 1.7.9.2 2020-11-13 [1] CRAN (R 4.0.3) magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.0.3) MASS 7.3-53 2020-09-09 [2] CRAN (R 4.0.3) Matrix 1.2-18 2019-11-27 [2] CRAN (R 4.0.3) memoise 1.1.0 2017-04-21 [1] CRAN (R 4.0.3) mime 0.9 2020-02-04 [1] CRAN (R 4.0.3) miniUI 0.1.1.1 2018-05-18 [1] CRAN (R 4.0.3) munsell 0.5.0 2018-06-12 [1] CRAN (R 4.0.3) networkD3 0.4 2017-03-18 [1] CRAN (R 4.0.3) openxlsx 4.2.3 2020-10-27 [1] CRAN (R 4.0.3) pbdZMQ 0.3-3.1 2020-10-14 [1] CRAN (R 4.0.3) pillar 1.4.7 2020-11-20 [1] CRAN (R 4.0.3) pkgbuild 1.1.0 2020-07-13 [1] CRAN (R 4.0.3) pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.0.3) pkgload 1.1.0 2020-05-29 [1] CRAN (R 4.0.3) plyr 1.8.6 2020-03-03 [1] CRAN (R 4.0.3) polyclip 1.10-0 2019-03-14 [1] CRAN (R 4.0.3) prettyunits 1.1.1 2020-01-24 [1] CRAN (R 4.0.3) processx 3.4.5 2020-11-30 [1] CRAN (R 4.0.3) promises 1.1.1 2020-06-09 [1] CRAN (R 4.0.3) ps 1.5.0 2020-12-05 [1] CRAN (R 4.0.3) pubmedR 0.0.3 2020-07-09 [1] CRAN (R 4.0.3) purrr 0.3.4 2020-04-17 [1] CRAN (R 4.0.3) R6 2.5.0 2020-10-28 [1] CRAN (R 4.0.3) RColorBrewer 1.1-2 2014-12-07 [1] CRAN (R 4.0.3) Rcpp 1.0.5 2020-07-06 [1] CRAN (R 4.0.3) rcrossref * 1.1.0 2020-10-02 [1] CRAN (R 4.0.3) readxl 1.3.1 2019-03-13 [1] CRAN (R 4.0.3) RefManageR * 1.3.0 2020-11-13 [1] CRAN (R 4.0.3) remotes 2.2.0 2020-07-21 [1] CRAN (R 4.0.3) rentrez 1.2.3 2020-11-10 [1] CRAN (R 4.0.3) repr 1.1.0 2020-01-28 [1] CRAN (R 4.0.3) rio 0.5.16 2018-11-26 [1] CRAN (R 4.0.3) rlang 0.4.9 2020-11-26 [1] CRAN (R 4.0.3) rmarkdown * 2.6 2020-12-14 [1] CRAN (R 4.0.3) rorcid * 0.7.0 2021-01-20 [1] CRAN (R 4.0.3) rprojroot 2.0.2 2020-11-15 [1] CRAN (R 4.0.3) rscopus * 0.6.6 2019-09-17 [1] CRAN (R 4.0.3) scales 1.1.1 2020-05-11 [1] CRAN (R 4.0.3) scatterplot3d 0.3-41 2018-03-14 [1] CRAN (R 4.0.3) sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.0.3) shiny 1.5.0 2020-06-23 [1] CRAN (R 4.0.3) shinycssloaders 1.0.0 2020-07-28 [1] CRAN (R 4.0.3) shinythemes 1.1.2 2018-11-06 [1] CRAN (R 4.0.3) SnowballC 0.7.0 2020-04-01 [1] CRAN (R 4.0.3) stringdist 0.9.6.3 2020-10-09 [1] CRAN (R 4.0.3) stringi 1.5.3 2020-09-09 [1] CRAN (R 4.0.3) stringr * 1.4.0 2019-02-10 [1] CRAN (R 4.0.3) testthat 3.0.0 2020-10-31 [1] CRAN (R 4.0.3) tibble 3.0.4 2020-10-12 [1] CRAN (R 4.0.3) tidygraph 1.2.0 2020-05-12 [1] CRAN (R 4.0.3) tidyr 1.1.2 2020-08-27 [1] CRAN (R 4.0.3) tidyselect 1.1.0 2020-05-11 [1] CRAN (R 4.0.3) triebeard 0.3.0 2016-08-04 [1] CRAN (R 4.0.3) tweenr 1.0.1 2018-12-14 [1] CRAN (R 4.0.3) urltools 1.7.3 2019-04-14 [1] CRAN (R 4.0.3) usethis 2.0.0 2020-12-10 [1] CRAN (R 4.0.3) uuid 0.1-4 2020-02-26 [1] CRAN (R 4.0.3) vctrs 0.3.5 2020-11-17 [1] CRAN (R 4.0.3) viridis 0.5.1 2018-03-29 [1] CRAN (R 4.0.3) viridisLite 0.3.0 2018-02-01 [1] CRAN (R 4.0.3) whisker 0.4 2019-08-28 [1] CRAN (R 4.0.3) withr 2.3.0 2020-09-22 [1] CRAN (R 4.0.3) xfun 0.20 2021-01-06 [1] CRAN (R 4.0.3) XML 3.99-0.5 2020-07-23 [1] CRAN (R 4.0.3) xml2 1.3.2 2020-04-23 [1] CRAN (R 4.0.3) xtable 1.8-4 2019-04-21 [1] CRAN (R 4.0.3) zip 2.1.1 2020-08-27 [1] CRAN (R 4.0.3) ```