
Manage Text in Boilerplate Database (Deprecated)
Source:R/backward-compatibility.R
boilerplate_manage_text.Rd
This function is partially deprecated. For basic list operations, please use boilerplate_import(category) instead. Other functionality is maintained for backward compatibility.
Usage
boilerplate_manage_text(
category = c("measures", "methods", "results", "discussion", "appendix", "template"),
action = c("add", "update", "remove", "get", "list", "save"),
name = NULL,
value = NULL,
db = NULL,
template_vars = list(),
text_path = NULL,
file_name = NULL,
warn_missing = TRUE,
create_dirs = FALSE,
confirm = TRUE,
dry_run = FALSE,
quiet = FALSE
)
Arguments
- category
Character. Category of text.
- action
Character. Action to perform: "add", "update", "remove", "get", "list", or "save".
- name
Character. Name/path of the text entry.
- value
Character. Text content to add or update.
- db
List. Optional database to use.
- template_vars
List. Variables to substitute in template when getting text.
- text_path
Character. Path to the directory where text database files are stored.
- file_name
Character. Name of the file to save or load (without path).
- warn_missing
Logical. Whether to warn about missing template variables.
- create_dirs
Logical. If TRUE, creates directories that don't exist.
- confirm
Logical. If TRUE, asks for confirmation before making changes.
- dry_run
Logical. If TRUE, simulates the operation without writing files.
- quiet
Logical. If TRUE, suppresses all CLI alerts.