Nothing
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(worcs)
Comprehensive citation of literature, data, materials, methods, and software
is one of the hallmarks of open science. When using the R-implementation of
WORCS, you will most likely be writing your manuscript in RMarkdown
format.
This means that you will use Markdown citekey
s to refer to references, and
these references will be stored in a separate text file known as a .bib
file.
To ease this process, we recommend following this procedure for citation:
.bib
file with the BibTeX references
for all citations..bib
file from most reference manager
programs; the free, open-source reference manager
Zotero is excellent and user-friendly,
and highly interoperable with other commercial reference managers. Seaching for "How to Integrate Zotero Citations with R Markdown" will yield tutorials for using Zotero with RMarkdown..bib
filecitekey
- the first word in the BibTeX entry
for that reference. Insert it in the RMarkdown file like so: @yourcitekey2020
.
For a parenthesized reference, use [@citekeyone2020; @citekeytwo2020]
. For
more options, see the RMarkdown cookbook.@@nonessential2020
.knit
command in the YAML header.knit: worcs::cite_all
renders all citations, andknit: worcs::cite_essential
removes all non-essential citations.knit: worcs::cite_essential
. The procedure is documented in this tutorial.knitr::include_graphics("scholar_bib.png")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.