Open cjvanlissa opened 4 years ago
That is a great idea and we should put it on our to-do list. (Maybe that is even something we should contribute to papaja). Never wrote something in lua though.
We could even automatically mask any paper that is authored by one of the authors of the Markdown.
I asked Frederik if he wants to come on board. If he does, this becomes a priority. If he does not, then I suggest we finish first draft based on the current approach (we're nearly there).
Frederik: This feature could also be generalized to mask identifying citation for double-blind review (similar to \maskcite in LaTeX). If I understand correctly, this is currently implemented via a wrapping render function. A more general, robust, and faster approach could be to write a Lua-filter for pandoc, which you could invoke via a YAML front matter option. Do you think that would make sense? I have some limited experience with writing Lua filters if you would like any pointers. It might be interesting to support such maskable or non-essential citations in papaja::cite_r().
And as a shameless plug: You mention copying bibtex keys to cite in R Markdown. You may know citr, but just in case you don't, it's an R Studio addin that lets you do this (or connect to Zotero directly) from within R Studio with a keyboard short cut: https://github.com/crsh/citr