View source: R/fix_contributor.R
fix_contributor | R Documentation |
Given a list of contributors (utils::person
objects), this
function formats them into a LaTeX/BibLaTeX-compatible string, merging roles
per person and formatting names.
Contributors without explicit roles are assumed to have the role "ctb"
. If
the input is NULL
or the special string ":unas"
, the function returns
":unas"
.
This formatting is intended for metadata serialization or citation exports.
fix_contributor(contributors = NULL)
contributors |
A vector of |
A character string like {Jane Doe [dtm, ctb]} and {John Smith [ctb]}
.
## Not run:
fix_contributor(person("Jane", "Doe", role = c("dtm", "ctb")))
fix_contributor(c(
person("Jane", "Doe", role = "ctb"),
person("John", "Smith")
))
fix_contributor(":unas")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.