Species and fishery specs are stored as plain YAML so that they can be edited by hand, shared between trainers and kept under version control.
Value
write_spec() returns file invisibly; read_spec() returns the
spec, re-validated through its constructor.
Examples
f <- tempfile(fileext = ".yaml")
write_spec(reef_fishery(), f)
read_spec(f)
#> FLOSS fishery 'reef_3fleets': 3 fleets, 1969-2025
#> fleet trend sigmaE creep
#> traps fudc(e0=0.05, hi=1, lo=0.8, breaks=0.4/0.6) 0.15 0
#> gillnet fudc(e0=0.05, hi=0.5, lo=1.5, breaks=0.5/0.8) 0.15 0
#> linefish fudc(e0=0.05, hi=2.5, lo=0.9, breaks=0.6/0.8) 0.15 0
#> creep_start
#> 1969
#> 1969
#> 1969