
Export a JASP (.jasp) file's own rendered output as standalone HTML
Source:R/jasp.R
export_jasp_html.RdA .jasp archive already bundles a fully rendered index.html – JASP'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="resources/.../*.png">) as
a base64 data: URI, so the result is a single, portable, self-contained
file that looks exactly like JASP's own output window, with no external
image files to keep alongside it.
Examples
jasp <- system.file("extdata", "sample.jasp", package = "metacheck")
html <- export_jasp_html(jasp, file.path(tempdir(), "sample_jasp.html"))
file.exists(html)
#> [1] TRUE