Closed efletcherPIFSC closed 2 years ago
@efletcherPIFSC what do you think about changing that line to say "Season must be "default" or an integer value of a season included in the index data (ie 1,2,3,4)."?
I agree to the that.idea.
One more question, We assuming that the index's integer values of a season is limited to (1,2,3,4) or to any numerical.
I think its limited to 1-4 because it assumes 4 seasons a year (winter, spring, summer, fall).
gh4actions call-docs-and-styler error styling
SSmase.R and
SSplotHCxval.R` converting dollar operators to brackets.SSmase.R
andSSPlotHCxval.R
throws this error message if a non-defaultSeason
value isNA
(or a non-integer): stop("Season must a default or and or the integer of indices$Seas 1,2,3,4")https://github.com/PIFSCstockassessments/ss3diags/blob/8c76cf069e7985d7b9d60c92d18961757bfb90a2/R/SSmase.R#L147-L150
https://github.com/PIFSCstockassessments/ss3diags/blob/8c76cf069e7985d7b9d60c92d18961757bfb90a2/R/SSplotHCxval.R#L412-L415
Converting indices$Seas to indices[[Seas]] manually is no problem.
My other question is there a less ambiguous way to say: Season must a default or and or the integer of indices$Seas 1,2,3,4.
Resolution
indices$Seas -> indices[[Seas]]