Using r4ss to populate forecast.ss .. truncated catches

30 views
Skip to first unread message

Shelton Harley

unread,
Aug 21, 2024, 10:50:04 PM8/21/24
to ss3-...@googlegroups.com

Hi:

 

Dumb question for today … I’m trying to loop over 15 TAC options and project forward 10 years with my 17 fisheries.

 

I was trying to use SS_readforecast()  and   SS_writeforecast() and assigning my new projected catch to the $ForeCatch object in the forecast file.

 

With lots of years and lots of fisheries the SS_writeforecast() is cutting things off ..e.g.

 

…..

   2026    3    16  1595.748435

   2026    4    16  2562.890086

   2026    1    17     0.000000

   2026    2    17   631.194612

   2026    3    17  1856.648481

   2026    4    17   545.561053

   2026    1    18   119.745828

   2026    2    18    72.929679

[ reached 'max' / getOption("max.print") -- omitted 518 rows ]

-9999 0 0 0

 

I’d prefer to use r4ss rather than ‘read’ and writeLines ….

 

Cheers

 

Shelton

Nathan Vaughan - NOAA Affiliate

unread,
Aug 22, 2024, 7:44:29 AM8/22/24
to SS3 - Forum
Hey Shelton,
            Not a dumb question at all it's a common problem when you are trying to write large files from R. You can fix this by running 

options(max.print = 1000000)

 which should fix the issue. The 1000000 is just an arbitrarily large number.

Cheers,
Nathan
Reply all
Reply to author
Forward
0 new messages