automated_edit_server: Automated Spell-Check Review App Server

View source: R/automated_edit.R

automated_edit_serverR Documentation

Automated Spell-Check Review App Server

Description

The server half of the review app used to hand-correct automated spell-check changes mid-textcleaner pipeline (see automated_edit()). Exposed as a reusable, namespaceable building block so a larger app (textcleaner_shiny()) can embed it as one module of a bigger wizard instead of only launching it standalone.

Usage

automated_edit_server(automated, on_finish = shiny::stopApp, id = NULL)

Arguments

automated

Matrix or data frame. The automated spell-check changes to review – a "from" column plus one or more "to_#" columns. Closed over directly by the returned server function; no file round-trip involved

on_finish

Function. Called with the edited matrix once either "Done" button is pressed. Defaults to shiny::stopApp for real standalone use; the injection point shiny::testServer() tests (and a parent module, via its own on_finish) use to capture the produced matrix directly instead of depending on stopApp()'s own behavior

id

Character or NULL. A shiny module namespace ID, matching automated_edit_ui's own id. Defaults to NULL (no namespacing, this function's original behavior) – when supplied, the server body is wrapped in shiny::moduleServer(id, ...)

Value

A function(input, output, session) suitable for shiny::shinyApp()'s server argument (when id is NULL), or a module server usable inside a larger app (when id is supplied)

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>


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