term_list_template: Generate a Basic Term List Template

Description Usage Arguments Examples

View source: R/term_list_template.R

Description

Generates a basic template for a term list. Optionally prints to an external file.

Usage

1
2
3
4
5
6
7
8
term_list_template(
  categories = NULL,
  path = "models/categories.R",
  hierarchical = TRUE,
  overwrite = FALSE,
  copy2clip = getOption("termco.copy2clip"),
  ...
)

Arguments

categories

A vector of categories (names corresponding to the regexes).

path

Path to external term list.

hierarchical

logical. If TRUE the term list is made to be hierarchical.

overwrite

logical. If TRUE prior files by that name will be overwritten, otherwise R will prompt the user before overwritting.

copy2clip

logical. If codeTRUE uses write_clip to copy the output to the clipboard. This argument can be set globally by setting options(termco.copy2clip = TRUE).

...

ignored.

Examples

1
2
3
cats <- c("Summons", "Justification", "Exclamation", "Empty")
term_list_template(cats, path = '')
term_list_template(cats, hierarchical = FALSE, path = '')

trinker/termco documentation built on Jan. 7, 2022, 3:32 a.m.