Skip to contents

This function is deprecated. Please use boilerplate_init() instead.

Usage

boilerplate_init_text(
  categories = c("methods", "results", "discussion", "appendix", "template"),
  merge_strategy = c("keep_existing", "merge_recursive", "overwrite_all"),
  text_path = NULL,
  overwrite = FALSE,
  quiet = FALSE,
  dry_run = FALSE,
  create_dirs = FALSE,
  confirm = TRUE
)

Arguments

categories

Character vector. Categories to initialize.

merge_strategy

Character. How to merge with existing databases.

text_path

Character. Path to the directory where text database files are stored.

overwrite

Logical. Whether to overwrite existing entries (deprecated).

quiet

Logical. If TRUE, suppresses all CLI alerts.

dry_run

Logical. If TRUE, simulates the operation without writing files.

create_dirs

Logical. If TRUE, creates directories that don't exist.

confirm

Logical. If TRUE, asks for confirmation before making changes.

Value

Invisibly returns a logical vector indicating which categories were successfully initialized.