Inherited methods
Method new()
Create a Plume object.
Usage
Plume$new(
data,
names = NULL,
roles = credit_roles(),
symbols = plm_symbols(),
credit_roles = FALSE,
initials_given_name = FALSE,
dotted_initials = TRUE,
family_name_first = FALSE,
distinct_initials = FALSE,
interword_spacing = TRUE,
orcid_icon = icn_orcid(),
by = NULL
)
Arguments
data
A data frame containing author data.
names
A vector of key-value pairs specifying custom names to use,
where keys are default names and values their respective replacements.
roles
A vector of key-value pairs defining roles where keys
identify role columns and values describe the actual roles to use.
symbols
Symbols, as defined by plm_symbols(), used to link
authors to their metadata. Special Markdown characters are
automatically escaped internally.
credit_roles
![[Deprecated]](figures/lifecycle-deprecated.svg?package=plume&version=0.3.0)
It is now recommended to use roles = credit_roles() to use the
Contributor Roles Taxonomy.
initials_given_name
Should the initials of given names be used?
dotted_initials
Should initials be dot-separated?
family_name_first
Should literal names show family names first?
distinct_initials
If TRUE, will expand identical initials with
additional letters from the last word of their respective family name
until initials are unique. Initials of authors sharing the exact same
name will remain in the short form.
interword_spacing
Should literal names use spacing? This parameter
is only useful for people writing in languages that don't separate
words with a space such as Chinese or Japanese.
orcid_icon
The ORCID icon, as defined by icn_orcid(), to be
used. Only supported in R Markdown.
by
A character string defining the default variable used to assign
specific metadata to authors in all set_*() methods. By default, uses
authors' id.
Method get_author_list()
Get the list of authors.
Usage
Plume$get_author_list(suffix = NULL, format = deprecated())
Arguments
suffix
A character string defining the format of symbols suffixing
author names. See details.
format
![[Deprecated]](figures/lifecycle-deprecated.svg?package=plume&version=0.3.0)
Please use the parameter suffix instead.
Details
suffix lets you choose which symbol categories to suffix authors with,
using the following keys:
The order of the keys determines the order of symbol types. For example,
"ac" shows affiliation ids first and corresponding author mark second,
when "ca" shows corresponding author mark first and affiliation ids
second. Use "," to separate and "^" to superscript symbols.
Set to NULL or "" to list authors without suffixes.
Returns
A character vector.
Method get_affiliations()
Get authors' affiliations.
Usage
Plume$get_affiliations(superscript = TRUE, sep = "")
Arguments
superscript
Should affiliation ids be superscripted?
sep
Separator used to separate affiliation ids and affiliations.
Returns
A character vector.
Method get_notes()
Get authors' notes.
Usage
Plume$get_notes(superscript = TRUE, sep = "")
Arguments
superscript
Should note ids be superscripted?
sep
Separator used to separate note ids and notes.
Returns
A character vector.
Method get_orcids()
Get authors' ORCID.
Usage
Plume$get_orcids(compact = FALSE, icon = TRUE, sep = "")
Arguments
compact
Should links only display the 16-digit identifier?
icon
Should the ORCID icon be shown? This is only supported in R
Markdown.
sep
Separator used to separate authors and their respective ORCID.
Returns
A character vector.
Arguments
template
A glue specification that uses the
variables name and/or details.
email, phone, fax, url
Arguments equal to TRUE are evaluated and
passed to the variable details. By default, only email is set to
TRUE.
sep
Separator used to separate details items.
format
![[Deprecated]](figures/lifecycle-deprecated.svg?package=plume&version=0.3.0)
Please use the parameter template instead.
Returns
A character vector.
Method get_contributions()
Get authors' contributions.
Usage
Plume$get_contributions(
roles_first = TRUE,
by_author = FALSE,
alphabetical_order = FALSE,
literal_names = FALSE,
divider = ": ",
sep = ", ",
sep_last = " and ",
dotted_initials = deprecated()
)
Arguments
roles_first
If TRUE, displays roles first and authors second. If
FALSE, roles follow authors.
by_author
Should roles be grouped by author?
alphabetical_order
Should authors be listed in alphabetical order?
By default, lists authors in the order they are defined in the data.
literal_names
Should literal names be used?
divider
Separator used to separate roles from authors.
sep
Separator used to separate roles or authors.
sep_last
Separator used to separate the last two roles or authors
if more than one item is associated to a role or author.
dotted_initials
![[Deprecated]](figures/lifecycle-deprecated.svg?package=plume&version=0.3.0)
Please use the dotted_initials parameter of Plume$new() instead.
Returns
A character vector.
Method clone()
The objects of this class are cloneable with this method.
Usage
Plume$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.