Interactively choose data-frame columns before calling mfrm_results()
Source: R/api-results.R
mfrm_results_interactive.RdInteractively choose data-frame columns before calling mfrm_results()
Usage
mfrm_results_interactive(
data,
include = "standard",
output = c("object", "summary", "tables", "html")
)Arguments
- data
A long-format data frame.
- include
Passed to
mfrm_results().- output
Passed to
mfrm_results().
Value
The selected mfrm_results() output.
Details
This helper is deliberately opt-in and stops in non-interactive sessions.
It asks the user to choose the person, score, optional weight, and facet
columns, prints reproducible code for the selected roles, then fits the
default legacy-compatible RSM/JML route before calling
mfrm_results(). Use explicit fit_mfrm() calls in scripts, Quarto
documents, tests, and reproducible analyses.
Why this helper is opt-in
Interactive prompts are useful at the console but are unsafe defaults for reproducible analysis, package checks, batch scripts, and manuscripts. The helper therefore prints replay code and leaves the scripted route explicit.
Examples
if (interactive()) {
toy <- load_mfrmr_data("example_core")
res <- mfrm_results_interactive(toy)
}