Skip to contents

Writes the manifest to a file in the requested format. Call at the end of an analysis script; commit the manifest alongside the paper for full reproducibility.

Usage

ato_manifest_write(path, format = c("auto", "csv", "yaml", "json"))

Arguments

path

Output file path. Extension determines format if format = "auto": .csv to CSV, .yaml/.yml to YAML, .json to JSON.

format

One of "auto" (infer from extension), "csv", "yaml", or "json".

Value

Invisibly, the absolute path to the written file.

Examples

# \donttest{
p <- tempfile(fileext = ".csv")
ato_manifest_clear()
ato_manifest_write(p)
# }