register_JSSextra | R Documentation |
Create and register bibstyle JSSextra.
register_JSSextra(make_default = FALSE, reset = FALSE, parent_style = "JSS")
make_default |
if |
reset |
recreate bibstyle |
parent_style |
the style from which to derive |
register_JSSextra
creates style "JSSextra"
and registers
it for use in the current R session. This means that it can be
specified for functions which accept a bibstyle argument, most notably
printing objects from class "bibentry"
and
"bibentryExtra"
. In normal use register_JSSextra
is
called once in a session.
Functions accepting a bibstyle argument use a default style if such an
argument is not provided. In most cases it is "JSS"
.
Using tools::bibstyle()
the default style can be changed at any
time to any of the styles currently registered in the session. A list
of these styles can be obtained with
tools::getBibstyle(TRUE)
. The currently default style can be
seen with tools::getBibstyle()
. As a convenience
register_JSSextra(TRUE)
makes and registers "JSSextra"
as the default style.
The remaining arguments should rarely be needed in normal circumstances.
register_JSSextra
stores the bibstyle object it creates and
just uses it when called again. reset = TRUE
can be used to
force a fresh copy of "JSSextra"
to be created.
By default "JSSextra"
is derived from "JSS"
. To base it
on a different style, use argument parent_style
.
register_JSSextra
is used mainly for the side effect of
registering and setting the style as default. It returns the created
style (an environment) but it can be discarded.
Georgi N. Boshnakov
## current default style
tools::getBibstyle()
tools::getBibstyle(TRUE) # all styles, currently "JSS" only
register_JSSextra() # register "JSSextra"
tools::getBibstyle(TRUE) # now it is available
tools::getBibstyle() # ... but not default
register_JSSextra(TRUE) # this makes it default
tools::getBibstyle()
## setting default style with bibstyle():
tools::bibstyle("JSS", .default = TRUE)
tools::getBibstyle()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.