Skip to contents

Add one or more Compound objects to a Snapshot.

Usage

add_compound(snapshot, compound)

Arguments

snapshot

A Snapshot object.

compound

A Compound object created with create_compound(), or a list of such objects.

Value

The updated Snapshot object, returned invisibly.

Examples

if (FALSE) { # \dontrun{
snapshot <- load_snapshot("Midazolam") |>
  add_compound(create_compound(name = "Drug X"))

snapshot <- load_snapshot("Midazolam") |>
  add_compound(list(
    create_compound(name = "Drug X"),
    create_compound(name = "Drug Y")
  ))
} # }