Forums

Back

Error in creating output for simple length model

Laura Lee, modified 3 Years ago.

Error in creating output for simple length model

Youngling Posts: 95 Join Date: 3/31/16 Recent Posts

Hello all,

I am trying to run essentially the LIME method in SS, as suggested by the primary author of LIME. When I submit the following line to R:

output <- SS_output(mydir,printhighcor=100,printlowcor=100,printstats=FALSE,ncols=61,forecast=FALSE)

I get the following error:

Error in 1:ncol(morph_indexing) : argument of length 0

I would greatly appreciate any guidance.

Thank you for your time.

 

Cheers,

Laura

KD
Kathryn Doering, modified 3 Years ago.

RE: Error in creating output for simple length model

Youngling Posts: 57 Join Date: 2/19/19 Recent Posts

Hi Laura,

 

Thanks for the question and for providing the model files!  Could you try updating r4ss by running remotes::install_github("r4ss/r4ss@main") in the R console, then restarting the R session and running r4ss::SS_output again?

 

I ran the model using the files you provided with SS 3.30.16 and then used SS_output; it ran fine for me, so I suspect the issue is a bug in an older version of r4ss. 

 

If you are still having issues after updating r4ss , could you let me know which version of SS is being run so I can test?

 

Thank you,

Kathryn

Laura Lee, modified 3 Years ago.

RE: Error in creating output for simple length model

Youngling Posts: 95 Join Date: 3/31/16 Recent Posts

Fantastic! Thanks so much! That worked!!!

Laura