Description Usage Arguments Value Examples
View source: R/format_citation.R
This function takes an object of class data.frame, list, or bibliography and returns a formatted citation.
1 2 3 4 5 6 7 8 |
data |
An object of class data.frame, list, or or bibliography. |
details |
Logical: Should identifying information such as author names & journal titles be displayed? Defaults to TRUE. |
abstract |
Logical: Should the abstract be shown (if available)? Defaults to FALSE. |
add_html |
Logical: Should the journal title be italicized using html codes? Defaults to FALSE. |
line_breaks |
Either logical, stating whether line breaks should be added, or numeric stating how many characters should separate consecutive line breaks. Defaults to FALSE. |
... |
any other arguments. |
Returns a string of length equal to length(data) that contains formatted citations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | roses <- c("@article{haddaway2018,
title={ROSES RepOrting standards for Systematic Evidence Syntheses:
pro forma, flow-diagram and descriptive summary of the plan and
conduct of environmental systematic reviews and systematic maps},
author={Haddaway, Neal R and Macura, Biljana and Whaley, Paul and Pullin, Andrew S},
journal={Environmental Evidence},
volume={7},
number={1},
pages={7},
year={2018},
publisher={Springer}
}")
tmp <- tempfile()
writeLines(roses, tmp)
citation <- read_ref(tmp)
format_citation(citation)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.