| pkrt_set | R Documentation |
This function lets you configure pakret's settings, for example,
to customize citation templates or specify which .bib file should store
the references.
pkrt_set(...)
... |
Key-value pairs, separated by commas, of parameters to set. See details. |
Valid parameters are:
bib
<character|numeric> = 1L
Name or index of the .bib file to save references to.
pkg
<character> = "the ':pkg' package version :ver [:ref]"
Template used to cite a package.
pkg_list
<character> = "':pkg' v. :ver [:ref]"
Template used in pkrt_list().
r
<character> = "R version :ver [:ref]"
Template used to cite R.
sep
<character> = ", "
Separator used between packages in inline chunks.
sep_last
<character> = ", and "
Separator used between the last two packages in inline chunks.
New settings only apply to citations that come after pkrt_set(). This means
you can redefine the same settings multiple times in the same document to
alter pakret's behavior for a few specific citations only.
Use NULL to reset a parameter to its default value.
This function is called for its side-effect. It returns no value.
pkrt_set(pkg = "*:pkg* :ver :ref")
pkrt("pakret")
# `NULL` resets parameters to their default value
pkrt_set(pkg = NULL)
pkrt("pakret")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.