MSEtool version: 3.0.0
MSEextra version: 0.1.0
System: Windows
User: Adrian
## ### Traceback
## #### 1
## `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)
##
##
## #### 2
## `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(...)