Skip to contents

Add one or more Formulation objects to a Snapshot.

Usage

add_formulation(snapshot, formulation)

Arguments

snapshot

A Snapshot object

formulation

A Formulation object created with create_formulation(), or a list of such objects.

Value

The updated Snapshot object, returned invisibly.

Examples

if (FALSE) { # \dontrun{
# Load a snapshot
snapshot <- load_snapshot("Midazolam")

# Add a single formulation
form <- create_formulation(name = "Tablet", type = "Weibull")
snapshot <- add_formulation(snapshot, form)

# Add several at once
forms <- list(
  create_formulation("Tablet", type = "Weibull"),
  create_formulation("Oral solution", type = "First Order")
)
snapshot <- add_formulation(snapshot, forms)
} # }