Skip to contents

A launcher around at_app(): it builds the app object from explicit arguments and runs it. Nothing is exchanged through global options.

Usage

at_annotate(
  x = NULL,
  labels = character(),
  layers = NULL,
  out_dir = NULL,
  launch.browser = TRUE,
  port = NULL,
  ...,
  call = rlang::caller_env()
)

Arguments

x

What to annotate: an annot_session, annot_project, annot_image, a character vector of image paths, a directory of images, or NULL (opens the bundled example session).

labels

Character vector of the global label vocabulary.

layers

An annot_layer, a list of them, or NULL. Applied as a template to every image.

out_dir

Directory for autosave and exports.

launch.browser

Passed to shiny::runApp().

port

Passed to shiny::runApp().

...

Passed to at_app() (control, read_only, view).

call

The calling environment, for error reporting.

Value

Invisible NULL. Launches a Shiny application; called for side effects.

Examples

# \donttest{
if (interactive()) {
  at_annotate(at_example_session(5))
}
# }