View source: R/cite_easystats.R
cite_easystats | R Documentation |
A convenient function for those who wish to cite the easystats packages.
cite_easystats(
packages = "easystats",
format = c("text", "markdown", "biblatex"),
intext_prefix = TRUE,
intext_suffix = "."
)
## S3 method for class 'cite_easystats'
summary(object, what = "all", ...)
## S3 method for class 'cite_easystats'
print(x, what = "all", ...)
packages |
A character vector of packages to cite. Can be |
format |
The format to generate citations. Can be |
intext_prefix |
A character vector of length 1 containing text to include
before in-text citations. If |
intext_suffix |
A character vector of length 1 containing text to include
after in-text citations. Defaults to |
what |
What elements of the citations to print, can be |
... |
Not used. Included for compatibility with the generic function. |
x , object |
A |
A list of class "cite_easystats"
with elements:
intext
: In-text citations in the requested format
refs
: References or bibliography in the requested format
# Cite just the 'easystats' umbrella package:
cite_easystats()
summary(cite_easystats(), what = "all")
# Cite every easystats package:
cite_easystats(packages = "all")
summary(cite_easystats(packages = "all"), what = "all")
# Cite specific packages:
cite_easystats(packages = c("modelbased", "see"))
summary(cite_easystats(packages = c("modelbased", "see")), what = "all")
# To cite easystats packages in an RMarkdown document, use:
## In-text citations:
print(cite_easystats(format = "markdown"), what = "intext")
## Bibliography (print with the `output = 'asis'` option on the code chunk)
print(cite_easystats(format = "markdown"), what = "refs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.