cjvanlissa / worcs

Rstudio project template and convenience functions for the Workflow for Open Reproducible Code in Science (WORCS)
https://cjvanlissa.github.io/worcs/
GNU General Public License v3.0
75 stars 11 forks source link

Feedback by Frederik Aust (papaja) #40

Open cjvanlissa opened 4 years ago

cjvanlissa commented 4 years ago

I wrote: One function that might be interesting for you is the rendering function cite_all / cite_essential; it allows users to keep all references in the preprint version of the manuscript, but mark some as non-essential and eliminate them for the print version

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().

Regarding citation:

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

aaronpeikert commented 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.

cjvanlissa commented 4 years ago

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).