Closed jkylearmstrong closed 6 months ago
Hi @jkylearmstrong
Thanks for the reprex. This in fact looks like a bug in how citation keys are parsed here. In particular, citation keys containing a '-' (like those for future 'RJ-2021-048' or survival package 'survival-package') are missed.
I think changing the regex to '{[\w-]+,$' could fix it, but need to make sure it works fine in all cases (comments/suggestions/alternatives welcome). I'll push a fix asap
Thanks!
You would probably know better than I, my regex is horrible! :)
Should be fixed now (v 0.2.9). Please let me know if you still find problems. Thanks for reporting!
@Pakillo - tested with the github version and it seems to work for the survival
package. Thanks for putting this together! very helpful!
Great! Thanks for checking. Happy citing!
Here is a reproducible example, some packages such as
survival
orfuture
are not generating citations. I'm not sure if the error is because they have multiple citations? I looked atget_citation_and_citekey
andadd_citekey
both give outputs