Error when trying to create json/bib reference file
rachelconnolly opened this issue · 3 comments
This package is really helpful, thanks for putting it together! Just having one issue. Following the below directions to try and create a bibliography file with only the articles I have cited in the RMarkdown file, I come up with an error (below). Is this a common issue or specific to my machine? I'm able to manually create the .json or .bib file by exporting from Zotero, but I can't use the RStudio rbbt add-ins to create the file, or to add selected items from Zotero into the file.
Error: Method not found: item.export
Instructions I was following: To make this work seamlessly with knitr and rmarkdown, use the “Update bibliography for current document” addin to write your bibliography file based on the citations in the currently selected document. You can use bbt_update_bib("some_file.Rmd") to detect citations and write your bibliography file from the console.
I believe that you probably don't have Better BibTex installed! That's the plugin that provides the ability to access this from R...you can install it here: https://retorque.re/zotero-better-bibtex/
Thanks! I do have Better BibTex installed (I can see it in my Zotero preferences). Is there anything else I might be missing? I'm able to pull in individual citations in RMarkdown using a shortcut, it's really just those add-ins to create/manipulate the bibliography that don't seem to connect with Zotero.
Hello, I'm also having this problem.
I am able to use the Insert Zotero Citation
addin to add citations. I can also add Bibliography from Zotero Selections.
My understanding is that rbbt::bbt_write_bib()
should create a file with all of the citations, however, the not found error pops up when I knit and Error: Can't detect context (tried current knitr doc)
when I run from the console.