Skip to contents

Add an object to the model's repository

Usage

# S4 method for class 'repository'
add(obj, ..., overwrite = FALSE)

# S4 method for class 'model'
add(obj, ..., overwrite = FALSE, repo_name = NULL)

# S4 method for class 'scenario'
add(obj, ..., overwrite = FALSE, repo_name = NULL)

Arguments

obj

model objuect

...

model elements, allowed classess: ...

overwrite

logical, if TRUE, objects with the same name will be overwritten, error will be reported if FALSE

repo_name

character, optional name of a (sub-)repository to add the object.

See also

Other repository: newRepository(), repository-class