Comprehensive affiliation schema

knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(plume)

Quarto provides a complete affiliation schema to define affiliations in more detail.

To generate comprehensive affiliations in plume, you can specify affiliation items in the input data using the following syntax key_1=item_1 key_2=item_2 key_n=item_n. PlumeQuarto will automatically parse affiliations and assign each item to its respective key.

Affiliations with no or unrecognised keys are assigned to the name key.

author <- tibble::tibble(
  given_name = "René",
  family_name = "Descartes",
  affiliation1 = "Collège royal Henri-le-Grand",
  affiliation2 = "
  city=Poitiers
  name=Université de Poitiers
  address=15 Rue de l'Hôtel Dieu
  country=Kingdom of France
  ",
  affiliation3 = "name=Academia Franekerensis country=The Netherlands city=Franeker"
)
tmp_file <- withr::local_tempfile(
  lines = "---\ntitle: Cogito ergo sum\n---",
  fileext = ".qmd"
)
aut <- PlumeQuarto$new(author, tmp_file)
aut <- PlumeQuarto$new(author, file = "file.qmd")
aut$to_yaml()

The above will produce the following YAML header:

aut$to_yaml()
cat(readr::read_file(tmp_file))


Try the plume package in your browser

Any scripts or data that you put into this service are public.

plume documentation built on Sept. 12, 2024, 7:31 a.m.