knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(citationcheckR)
create_citations
was made to speed up the process of getting citations for your R papers, reports or anything else. Instead of having to run citation
multiple times, you can run create_citations
once to get all of your citations done quickly. The citations are returned in the console or under your R chunk, making it easy to copy and paste.
There are two ways to gather the packages used to create citations. The first way to gather the packages is to leave the packages
argument empty. Doing this tells the function to take any package that has been loaded into your R session and create citations for it.
create_citations()
The other way to create citations is to fill the citations arugment with the packages you want to get citations for.
create_citations(c("Lahman", "tidyverse", "DoSStoolkit"))
As you may have noticed, the citations that were returned included a citation for R. This is done by default and can be turned off using include_r = FALSE
.
create_citations(c("Lahman", "tidyverse", "DoSStoolkit"), include_r = FALSE)
By default, create_citations
will return citations as bibTeX, but this can be changed by setting format = 'text'
create_citations(c("Lahman", "tidyverse", "DoSStoolkit"), include_r = FALSE, format = "text")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.