Skip to contents

Creates a formatted Microsoft Word document containing the Hierarchical Taxonomy of Psychopathology - Substance Use Module (HSUM) overview, branching logic, and items.

Usage

generate_docx_hitophsum(
  file = "hitophsum_overview_1.0.docx",
  papersize = c("us", "a4"),
  title = "HiTOP-HSUM (v1.0) Overview",
  font_size = 10,
  font_family = "Times New Roman"
)

Arguments

file

Character string specifying the output file path. Defaults to "hitophsum_overview_1.0.docx".

papersize

Character string specifying the paper dimensions. Must be one of "us" (8.5x11 inches) or "a4" (210x297 mm). Defaults to "us".

title

Character string for the document header title. Defaults to "HiTOP-HSUM (v1.0) Overview".

font_size

Numeric value specifying the base font size in points. Defaults to 10.

font_family

Character string specifying the font family to be used. Defaults to "Times New Roman".

Value

Invisibly returns the path to the created file (file).