Skip to contents

genproc 0.0.0.9000 (development)

Execution layers

  • New genproc() runs a function over an iteration mask, with two mandatory layers always active:
    • Logged — structured log with real traceback (captured via withCallingHandlers()) and per-case timing.
    • Reproducibility — environment snapshot at run start (R version, platform, loaded package versions, mask, and specs of any optional layer used).
  • New parallel_spec() and the parallel argument of genproc(): optional parallel dispatch over future.apply::future_lapply(). Auto-defaults to "multisession" when workers is passed without an explicit strategy, restoring the previous plan on exit.
  • New nonblocking_spec() and the nonblocking argument of genproc(): genproc() returns immediately with a genproc_result of status "running" while the run continues in a background future. Use status() to poll, await() to block until resolution. Composable with parallel.

Result object

  • New S3 class genproc_result with stable fields: log, reproducibility, n_success, n_error, duration_total_secs, status.
  • Per-case errors do not stop the run; they are captured in the log and surfaced in n_error.
  • case_ids are index-based (case_0001, …) for now; a content-based variant is planned.

Building blocks