Skip to contents

Unlike .jasp/.omv, a .spv archive carries no rendered view of its own (see the file header) – so, unlike export_jasp_html() and export_omv_html(), this does not re-export an existing document. It builds a new HTML page from what import_spv() already decodes: one heading per analysis (its recovered SPSS syntax shown underneath, when recoverable), one <table> per result table, and – for a chart entry (import_spv()'s is_chart = TRUE) – a scatter plot rendered from its own decoded (x, y) points with any fitted trend lines SPSS itself computed drawn over it (see .spv_decode_chart()), embedded as a base64 PNG the same way export_jasp_html() inlines its own plots.

Usage

export_spv_html(path, out = NULL)

Arguments

path

path to a .spv 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

if (FALSE) { # \dontrun{
# needs an SPSS output file (.spv), which only SPSS writes
export_spv_html("my_analysis.spv", file.path(tempdir(), "my_analysis.html"))
} # }