
Export a jamovi (.omv) file's own rendered output as standalone HTML
Source:R/omv.R
export_omv_html.RdA .omv archive already bundles a fully rendered index.html – jamovi's
own output view, complete with result tables and any plots – alongside the
data (see the file header). This extracts that index.html as-is and
inlines every plot it references (an <img src="....png"> under one of
the per-analysis resources/ folders) as a base64 data: URI, so the
result is a single, portable, self-contained file that looks exactly like
jamovi's own output window, with no external image files to keep alongside
it.
Examples
omv <- system.file("extdata", "sample.omv", package = "metacheck")
html <- export_omv_html(omv, file.path(tempdir(), "sample_omv.html"))
file.exists(html)
#> [1] TRUE