brandynlucca / acousticTS

Theoretical TS models
Other
9 stars 0 forks source link

Built-in data object errors #29

Open brandynlucca opened 1 year ago

brandynlucca commented 1 year ago

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: