MSEtool version: 3.0.9005
MSEextra version: 0.1.0
System: Windows
User: Adrian
## ### Traceback
## #### 1
## round(sd(Cerr_y[1:OM@nyears]), 2) not equal to round(sd(Hist@SampPars$Obs$Cerr_y[sim, ]), 2).
## 1/1 mismatches
## [1] 0.28 - 0.33 == -0.05
##
##
## #### 2
## round(Hist@SampPars$Obs$Cbias[sim], 1) not equal to round(bias, 1).
## 1/1 mismatches
## [1] 0.9 - 1 == -0.1
##
##
## #### 3
## Bio[sim, 1:(OM@nyears + OM@proyears - 1)] not equal to MSE@PPD[[1]]@AddInd[sim, sim, ].
## 49/99 mismatches (average diff: 0.0378)
## [51] 13794 - 13794 == 0.00983
## [52] 13604 - 13604 == 0.03532
## [53] 13450 - 13450 == 0.04364
## [54] 13518 - 13518 == 0.05597
## [55] 13815 - 13814 == 0.04697
## [56] 14090 - 14090 == 0.02572
## [57] 13411 - 13411 == 0.02794
## [58] 13071 - 13071 == 0.05286
## [59] 13454 - 13454 == 0.02904
## ...
##
##
## #### 4
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 5
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 6
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: Require `Maximum age` to use Additional Indices
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 7
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 8
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 9
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 10
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 11
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 12
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 13
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 14
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 15
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 16
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 17
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 18
## `Data <- new("Data", file.path(path, fl))` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(...) test-Import_Data.R:15:4
## 6. methods::new("Data", file.path(path, fl))
## 8. MSEtool:::initialize(value, ...)
## 9. MSEtool:::.local(.Object, ...)
## 10. MSEtool::XL2Data(stock, ...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/Class_definitions.R:206:4
##
##
## #### 19
## `summary(Data, wait = FALSE)` threw an error.
## Message: error in evaluating the argument 'object' in selecting a method for function 'summary': object 'Data' not found
## Class: simpleError/error/condition
## Backtrace:
## 1. testthat::expect_error(summary(Data, wait = FALSE), NA) test-Import_Data.R:16:4
## 7. base::.handleSimpleError(...)
## 8. base:::h(simpleError(msg, call))
##
##
## #### 20
## `fun(COSEWICobj)` threw an error.
## Message: subscript out of bounds
## Class: simpleError/error/condition
## COSEWIC_Hplot
## Backtrace:
## 1. testthat::expect_error(fun(COSEWICobj), NA, info = ff) test-MSE_Plotting.R:23:6
## 6. MSEtool:::fun(COSEWICobj)
## 7. MSEtool:::DFO_Dplot(D, qcol, lcol, Blims, yrs, MSY = F, quants = quants) C:/Users/Adrian/Documents/GitHub/MSEtool/R/DFO.R:906:2
## 8. MSEtool:::plotquant2(D, p = quants, yrs, qcol, lcol) C:/Users/Adrian/Documents/GitHub/MSEtool/R/DFO.R:700:2
## 9. graphics::polygon(...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/DFO.R:648:2
## 10. grDevices::xy.coords(x, y, setLab = FALSE)
##
##
## #### 21
## `fun(MSE)` threw an error.
## Message: need finite 'ylim' values
## Class: simpleError/error/condition
## VOI
## Backtrace:
## 1. testthat::expect_error(fun(MSE), NA, info = ff) test-MSE_Plotting.R:28:8
## 6. MSEtool:::fun(MSE)
## 8. graphics::plot.default(x, y, col = "white", axes = F, ylim = ylimy)
## 9. graphics:::localWindow(xlim, ylim, log, asp, ...)
## 10. graphics::plot.window(...)
##
##
## #### 22
## `plot(obj, silent = TRUE, open = FALSE)` threw an error.
## Message: 'Len_age' must be array with dimensions: nsim, maxage+1, nyears + proyears.
## Should be: 48,9,117; Currently is: 48,8,117
## Class: simpleError/error/condition
## Skipjack_IO_IOTC 283
## Backtrace:
## 1. testthat::expect_error(...) test-OM_Plotting.R:108:4
## 8. MSEtool:::plot.OM(obj, silent = TRUE, open = FALSE)
## 9. MSEtool:::render_plot(...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/OM_Plotting.R:362:2
## 10. MSEtool::Simulate(Object, silent = TRUE, parallel = dopar) C:/Users/Adrian/Documents/GitHub/MSEtool/R/OM_Plotting.R:80:4
## 11. MSEtool::SampleStockPars(...) C:/Users/Adrian/Documents/GitHub/MSEtool/R/runMSE.R:62:2