Skip to content

criterion_B() error if DrawMap=TRUE #30

@AMBarbosa

Description

@AMBarbosa

Using {ConR} version 2.0.9 from branch ConR@devel, criterion_B() runs with the default arguments, but it fails if I set DrawMap=TRUE (whether or not I provide a country_map):

(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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions