robyn_save: Export Robyn Model to Local File [DEPRECATED]

View source: R/exports.R

robyn_saveR Documentation

Export Robyn Model to Local File [DEPRECATED]

Description

Use robyn_save() to select and save as .RDS file the initial model.

Usage

robyn_save(
  InputCollect,
  OutputCollect,
  robyn_object = NULL,
  select_model = NULL,
  dir = OutputCollect$plot_folder,
  quiet = FALSE,
  ...
)

## S3 method for class 'robyn_save'
print(x, ...)

## S3 method for class 'robyn_save'
plot(x, ...)

robyn_load(robyn_object, select_build = NULL, quiet = FALSE)

Arguments

InputCollect

List. Contains all input parameters for the model. Required when robyn_object is not provided.

OutputCollect

List. Containing all model result. Required when robyn_object is not provided.

robyn_object

Character or List. Path of the Robyn.RDS object that contains all previous modeling information or the imported list.

select_model

Character. A model SolID. When robyn_object is provided, select_model defaults to the already selected SolID. When robyn_object is not provided, select_model must be provided with InputCollect and OutputCollect, and must be one of OutputCollect$allSolutions.

dir

Character. Existing directory to export JSON file to.

quiet

Boolean. Keep messages off?

...

Additional parameters passed to robyn_outputs().

x

robyn_save() output.

select_build

Integer. Default to the latest model build. select_build = 0 selects the initial model. select_build = 1 selects the first refresh model.

Value

(Invisible) list with filename and summary. Class: robyn_save.

(Invisible) list with imported results


Robyn documentation built on June 27, 2024, 9:06 a.m.