
Export Synthesis Reports
report_export.RdConvenience exporters for synthesis_report objects. These helpers create
manuscript-ready report text in markdown, HTML, or DOCX format.
Usage
as_markdown(x, ...)
# S3 method for class 'synthesis_report'
as_markdown(x, file = NULL, digits = 3, ...)
as_html(x, ...)
# S3 method for class 'synthesis_report'
as_html(x, file = NULL, digits = 3, ...)
as_docx(x, ...)
# S3 method for class 'synthesis_report'
as_docx(x, file, digits = 3, ...)Examples
# \donttest{
fit <- mars(
data = becker09,
studyID = "ID",
effectID = "numID",
sample_size = "N",
effectsize_type = "cor",
varcov_type = "weighted",
variable_names = c(
"Cognitive_Performance",
"Somatic_Performance",
"Selfconfidence_Performance",
"Somatic_Cognitive",
"Selfconfidence_Cognitive",
"Selfconfidence_Somatic"
)
)
report <- synthesis_factor_report(fit, factor_method = "none")
markdown <- as_markdown(report)
html <- as_html(report)
as_docx(report, file = tempfile(fileext = ".docx"))
# }