(example <- structure(list(lon = c(-2.59487105548141, -2.01867048441999), lat = c(39.1635112135211, 38.9798640743379), species = c("myspecies", "myspecies")), row.names = c(1L, 2L), class = "data.frame"))
criterion_B(x = example)
# OK
criterion_B(x = example, DrawMap = TRUE)
# Error in cat_criterion_b(EOO = EOO$eoo, AOO = AOO$aoo, locations = locations_res$locations$locations) :
# Numbers of values provided for each parameters should be identical
Using {ConR} version 2.0.9 from branch ConR@devel,
criterion_B()runs with the default arguments, but it fails if I setDrawMap=TRUE(whether or not I provide acountry_map):