load_forecasts: Fetch the output from previously-run forecasting using...

View source: R/load-forecasts.R

load_forecastsR Documentation

Fetch the output from previously-run forecasting using run_forecasts()

Description

Fetch the output from previously-run forecasting using run_forecasts()

Usage

load_forecasts(
  model_path = NULL,
  first = 0,
  forecast_yrs = get_assess_yr():(get_assess_yr() + 3),
  verbose = TRUE,
  ...
)

Arguments

first

Load this many of the files. If a non-positive number, load them all. Used for debugging purposes to cut down the size of the lists used

forecast_yrs

A vector of forecast years

verbose

Logical. If TRUE, show messages

...

Absorbs arguments intended for other functions

model

The SS model output as loaded by create_rds_file()

Details

If the forecasts directory does not exist or there is a problem loading the forecasts, return NA

Value

A list of forecast outputs as read in by r4ss::SSgetMCMC()


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.