pacea_save: Save some results as '.rds' files to then be imported into...

View source: R/utils-pacea-save.R

pacea_saveR Documentation

Save some results as .rds files to then be imported into the pacea R package.

Description

Need to first have results loaded in, so just run this after building the document (function does use assess_yr which will have been defined already). Function creates a directory and places the files in there.

Usage

pacea_save(
  model_lst = list(base_model),
  model_names = list(base_model_name),
  dir_to_save = NULL
)

Arguments

model_lst

List of models, but only works for one, just change if want to save results from a different model. Code keep the list format to remain similar to other hake package functions.

model_names

List of model names, again only one will work.

dir_to_save

Directory to put the resulting .rds files into, gets created if doesn't exist. The default (gets built if NULL) is somewhat tailored for Andy's machine, so check the function code and set the value if needed. You'll have to manually include assess_yr.

Value

Nothing, but saves the .rds files in the appropriate directory.

Author(s)

Andrew Edwards


pacific-hake/hake-assessment documentation built on July 21, 2024, 8:19 a.m.