rocker-org / rocker

R configurations for Docker
https://rocker-project.org
GNU General Public License v2.0
1.45k stars 273 forks source link

Local Zotero Integration? #543

Open emstruong opened 5 months ago

emstruong commented 5 months ago

Hi,

Rocker's been very helpful for me. I was wondering if it'd be possible to somehow link Zotero to rocker? For example, when writing documents in Rmarkdown, it'd be nice to somehow be able to fetch citations from the zotero library.

I'm aware of the option of exporting a .bib file from zotero manually, but I'm not sure how well this would fare in the long run with many different reports and files...

cboettig commented 5 months ago

You're probably best off using an R package that can talk to Zotero's API. A quick google search turns up https://github.com/giocomai/zoteror. I tend to export selected papers from Zotero ino .bib files though and just use that. (As you surmised, at least when last I checked last, pandoc/rmarkdown doesn't perform well when .bib files are very very large).

emstruong commented 5 months ago

Hi @cboettig , that makes sense to me--thanks for the package recommendation.

Do you have any particular recommendations for how to use confidential information (Zotero API key (?) and etc) through rocker? Maybe: https://docs.docker.com/compose/use-secrets/ ?

eliselavy commented 4 months ago

@emstruong I use the plugin citation-manager made by @krassowski

https://github.com/krassowski/jupyterlab-citation-manager

It's made for JupyterLab, but with Jupytext you can pair your .ipynb with Rmarkdown https://jupytext.readthedocs.io/en/latest/formats-markdown.html