Skip to contents

Call this after the corresponding batch output has been written to disk, so an interruption never marks unwritten work as done.

Usage

pam_checkpoint_add(ids, path)

Arguments

ids

Character vector of IDs (e.g. file paths relative to the audio root).

path

Checkpoint file path.

Value

ids, invisibly.

Examples

ckpt <- tempfile(fileext = ".txt")
pam_checkpoint_add("a.wav", ckpt)
pam_checkpoint_add("b.wav", ckpt)
pam_checkpoint_read(ckpt)
#> [1] "a.wav" "b.wav"
unlink(ckpt)