plm_template {plume}R Documentation

Create a table template for plume classes

Description

This helper function allows you to generate an empty tibble that you can use as a template to supply author data.

Usage

plm_template(minimal = TRUE, role_cols = credit_roles(), credit_roles = FALSE)

Arguments

minimal

If TRUE, returns an empty tibble with the following columns: given_name, family_name, email, orcid, affiliation and note. Otherwise the function returns a template with all columns that can be supplied to plume classes that are not PlumeQuarto-specific.

role_cols

A vector of names defining role columns to create. If the vector contains key-value pairs, columns will be named after the keys.

credit_roles

[Deprecated]

It is now recommended to use role_cols = credit_roles() to use the Contributor Roles Taxonomy.

Value

An empty tibble.

Examples

plm_template()

plm_template(role_cols = paste0("role_", 1:5))

[Package plume version 0.2.4 Index]