View source: R/api-export-bundles.R
| export_summary_appendix | R Documentation |
Export manuscript appendix tables from validated summary surfaces
export_summary_appendix(
x,
output_dir = ".",
prefix = "mfrmr_appendix",
include_html = TRUE,
preset = c("all", "recommended", "compact", "methods", "results", "diagnostics",
"reporting"),
overwrite = FALSE,
zip_bundle = FALSE,
zip_name = NULL,
digits = 3,
top_n = 10,
preview_chars = 160
)
x |
A supported |
output_dir |
Directory where files will be written. |
prefix |
File-name prefix for written artifacts. |
include_html |
If |
preset |
Appendix table-selection preset:
|
overwrite |
If |
zip_bundle |
If |
zip_name |
Optional zip-file name. Defaults to |
digits |
Digits forwarded when raw objects must be normalized through
|
top_n |
Row cap forwarded when raw objects must be normalized through
|
preview_chars |
Character cap forwarded when APA-output summaries must
be normalized through |
This helper is the narrow public bridge from validated summary() surfaces
to manuscript appendix artifacts. It accepts the same reporting objects that
build_summary_table_bundle() supports, exports their table bundles as CSV,
and optionally assembles a lightweight HTML appendix page.
Fit-level caveats are exported through the analysis_caveats role, and
pre-fit score-support caveats are exported through the
score_category_caveats role. Both roles are classified as diagnostics, so
they remain available under "recommended" and "diagnostics" presets when
the source summary contains caveat rows.
Precision-review summaries keep fit_separation_basis in the exported
precision-review role so fit, ZSTD, separation/reliability/strata, and
package QC thresholds can be reported without turning them into release or
recovery success gates.
Fit-measure and FACETS fit-review summaries keep df/ZSTD sensitivity and
optional external FACETS matching tables in the same precision-review lane.
Parameter-recovery studies can be exported by passing
evaluate_mfrm_recovery() or assess_mfrm_recovery() output directly. The
exported bundle keeps the ADEMP-style simulation basis, recovery metrics,
replication status, adequacy checklist, thresholds, and next actions in
separate appendix-ready tables.
Recovery-validation summaries from the packaged validation protocol can be
exported by passing summary(validation), including top-line release
decisions, condition notes, diagnostic notes, and domain decisions.
Unlike export_mfrm_bundle(), this helper does not require a fitted model.
It is intended for the stage where compact reporting summaries already exist
and the task is to hand off appendix-ready tables, catalogs, and reporting
maps.
A named list of class mfrm_summary_appendix_export with:
summary
written_files
selection_summary
selection_table_summary
selection_section_table_summary
selection_handoff_table_summary
selection_handoff_preset_summary
selection_handoff_summary
selection_handoff_bundle_summary
selection_handoff_role_summary
selection_handoff_role_section_summary
selection_role_summary
selection_section_summary
selection_catalog
settings
notes
Build summary(...) objects from fit, diagnostics, data description,
reporting checklist, or APA outputs.
Call export_summary_appendix(...) on one object or a named list.
Hand off the written CSV/HTML appendix artifacts to manuscript or QA workflows.
build_summary_table_bundle(), export_mfrm_bundle(),
apa_table()
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", maxit = 30)
diag <- diagnose_mfrm(fit, residual_pca = "none")
appendix <- export_summary_appendix(
list(fit = fit, diagnostics = diag),
output_dir = tempdir(),
prefix = "mfrmr_appendix_example",
include_html = TRUE,
overwrite = TRUE
)
appendix$summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.