Skip to contents

Writes four files to out_dir:

Usage

ri_write(result, out_dir)

Arguments

result

A reproimage_result from ri_analyze().

out_dir

Output folder; created if needed.

Value

The output folder, invisibly.

Details

  • result.json: the full result (schema reproimage-result/1);

  • pairs.csv: one row per related pair;

  • report.html: a self-contained report with side-by-side thumbnails;

  • ro-crate-metadata.json: an RO-Crate 1.1 record of the analysis (inputs with their checksums, tool version and parameters), compatible with W3C PROV.

Examples

res <- ri_analyze(ri_example_dir())
out <- file.path(tempdir(), "reproimage-example")
ri_write(res, out)
list.files(out)
#> [1] "pairs.csv"              "report.html"            "result.json"           
#> [4] "ro-crate-metadata.json"
unlink(out, recursive = TRUE)