Skip to contents

A .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.

Usage

export_omv_html(path, out = NULL)

Arguments

path

path to a .omv file

out

path to write the HTML file to. Without it, the file is named after path with the extension .html and written to the R session's temporary folder, which R removes when the session ends (CRAN does not allow writing elsewhere unless you ask for it); a message says where.

Value

the path written to, invisibly

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