This function runs gadget until a specified year and automatically generate two FLR objects (FLStock and FLIndex) for each available stocks from the gadget run.

runUntil(until, globalparams)

Arguments

until

end year of the simulation

globalparams

a list object of parameters to aid gadget to FLR objects generation (See this page vignette("gadget-flr", package = "gadgetr") for an example)