An R6 class for holding information about a product with at least one active ingredient

Format

An R6Class generator object.

Public fields

name

The name of the product

ais

A list of active ingredients

concentrations

The concentration of the ais

concentration_units

Defaults to g/L

Methods

Public methods


Method new()

Usage

pp$new(
  name,
  ...,
  concentrations,
  concentration_units = "g/L",
  density = 1000,
  density_units = "g/L"
)


Method print()

Usage

pp$print()


Method clone()

The objects of this class are cloneable with this method.

Usage

pp$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.