Certain built-in example data objects such as krill and cod have deprecated object slot definitions that prevent them from appropriately interacting with various methods including reforge, show, and plot; other important functions such as target_strength(...) will also flag an error. This straightforward fix requires generating copies of these objects, updating the deprecated slots and their respective formats, and then resaving the .rda files. This error can be replicated for the cod dataset as such:
data(cod)
cod <- target_strength( cod , frequency = seq( from = 1e3 , to = 500e3 , by = 1e3 ) , model = "KRM" )
>>> Error in 1:(iterations - 1) : argument of length 0
Tasks to address this below:
[ ] Fix cod data object so that it conforms to the correct scatterer and SBF S4 slot definitions
[ ] Fix sardine data object so that it conforms to the correct scatterer and SBF S4 slot definitions
[ ] Fix krill data object so that it conforms to the correct scatterer and FLS S4 slot definitions
Certain built-in example
data
objects such askrill
andcod
have deprecated object slot definitions that prevent them from appropriately interacting with variousmethods
includingreforge
,show
, andplot
; other important functions such astarget_strength(...)
will also flag an error. This straightforward fix requires generating copies of these objects, updating the deprecated slots and their respective formats, and then resaving the.rda
files. This error can be replicated for thecod
dataset as such:Tasks to address this below:
cod
data object so that it conforms to the correctscatterer
andSBF
S4 slot definitionssardine
data object so that it conforms to the correctscatterer
andSBF
S4 slot definitionskrill
data object so that it conforms to the correctscatterer
andFLS
S4 slot definitions