Learn R Programming

plume (version 0.3.0)

plm_template: Create a table template for plume classes

Description

Create an empty tibble that can be used as a template to supply author data.

Usage

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

Value

An empty tibble.

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.

Examples

Run this code
plm_template()

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

Run the code above in your browser using DataLab