add: Add an object to the model's repository

add,repository-methodR Documentation

Add an object to the model's repository

Description

Add an object to the model's repository

Usage

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

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

Arguments

obj

model object

...

model elements, allowed classes: ...

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.

Value

model object with added elements to the repository


olugovoy/energyRt documentation built on Nov. 21, 2024, 2:24 a.m.