paleolimbot / rbbt

R Interface to the Better BiBTex Zotero Connector
145 stars 26 forks source link

Error when trying to create json/bib reference file #32

Open rachelconnolly opened 2 years ago

rachelconnolly commented 2 years ago

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("somefile.Rmd") to detect citations and write your bibliography file from the console.

paleolimbot commented 2 years ago

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/

rachelconnolly commented 2 years ago

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.

pbuto819 commented 7 months ago

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.