build_answer_burst: Build a Wizard Answer Burst

View source: R/build_answer_burst.R

build_answer_burstR Documentation

Build a Wizard Answer Burst

Description

Builds the exact queued-answer burst one textcleaner_shiny wizard button click needs to feed a single resume call (textcleaner(continue = ..., reader = <queue reader>, ...)) all the way through the one decision it represents, without starving or overrunning the console wizard's own prompts. See advance_wizard.

Exported (not just internal) because inst/Shiny/'s own module files are sourced into the global environment by Shiny's own app-loading mechanism, not into the package namespace – an unexported function is not reachable from there by its bare name.

Usage

build_answer_burst(
  menu_number,
  typed_text = NULL,
  add_to_dictionary = FALSE,
  full_dictionary = NULL,
  original_check = NULL
)

Arguments

menu_number

Character or numeric, length 1. The real, currently-displayed menu position (or letter, for GO BACK/HELP/ a response-option suggestion) to send – see wizard_menu_labels/ wizard_response_letters

typed_text

Character or NULL. The free text typed for a TYPE MY OWN WORD/STRING decision. NULL (the default) for every other decision

add_to_dictionary

Logical. Whether to answer "yes" to any dictionary-add prompt this decision triggers. Defaults to FALSE

full_dictionary

Character vector. The current full dictionary, used to determine how many (if any) dictionary-add prompts typed_text/original_check will trigger. Required whenever either of those is supplied

original_check

Character or NULL. The pending decision's own original text, supplied only when menu_number corresponds to KEEP ORIGINAL – see this function's own header comment for the real hang this closes

Value

A character vector: the answers to queue, in order

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>


SemNetCleaner documentation built on Oct. 16, 2026, 5:07 p.m.