b-steve / acre

Acoustic spatial capture-recapture models
GNU General Public License v3.0
3 stars 1 forks source link

Setting control components for `plot.acre_data()` returns an error #6

Closed b-steve closed 1 year ago

b-steve commented 1 year ago

Setting some of the control argument's components causes an error. For example, in the source code it looks like arg_col should be an allowable input but it causes an error:

demo <- demo_fit("ihd", fit = FALSE)
plot(demo$read_output, types = "covariates", session = 1,
     control = list(arg_col = list(n = 100, option = "D")))

Error in plot.acre_data(demo$read_output, types = "covariates", session = 1,  : 
  object '"covariates"' not found

I just had the same error when trying to use control = list((plot_contours = FALSE), which I've fixed (see 05e3a24), and I think a similar fix needs to be applied elsewhere.

2345scy commented 1 year ago

fixed in the commit 7842b52