Skip to contents

A convenience wrapper that calls the various section generators and combines them into one text block. Ideal for quick copy-paste into Word.

Usage

authordown(
  data,
  title = NULL,
  style = "default",
  show_degree = FALSE,
  acknowledgement_style = "paragraph",
  conflict_style = "paragraph",
  contribution_style = "paragraph"
)

Arguments

data

A data frame with the columns needed by each function: generate_title_page, generate_acknowledgement, generate_conflict, generate_contribution.

title

Optional paper title to pass to generate_title_page().

style

Title page style ("default", "APA", "Nature").

show_degree

Logical. If TRUE, include Degree after author names.

acknowledgement_style

Output style for acknowledgements.

conflict_style

Output style for conflicts of interest.

contribution_style

Output style for contributions.

Value

A character string containing all sections.

Examples

if (FALSE) { # \dontrun{
authors <- read.csv("authordown_template.csv")
cat(authordown(authors, title = "My Great Paper", style = "default"))
} # }