Skip to content

Throw error for NULL labels passed to callouts #440

@thongsav-usgs

Description

@thongsav-usgs

gsplot() %>% callouts(NA, NA, labels=NULL) produces the error:

Error in text.default(x = numeric(0), y = numeric(0), labels = NULL, pos = c(1,  : 
  no coordinates were supplied

I believe it's caused by labels being null, but a more explicit error message helping the caller identify the issue would be useful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions