Skip to contents

Apply a function to every project in a session

Usage

at_batch_apply(
  session,
  fn,
  ...,
  scope = "all",
  progress = TRUE,
  call = rlang::caller_env()
)

Arguments

session

An annot_session.

fn

A function fn(project, image, idx) returning an annot_project.

...

Passed to fn.

scope

"all" (default), "complete", "current", or "flagged".

progress

Logical; show a progress bar. Default TRUE.

call

The calling environment, for error reporting.

Value

The annot_session with modified projects.