Skip to content

assemble_acoustics_containers() fails ungracefully if there are no detections #54

Description

@edwardlavender

If there are no detections, assemble_acoustics_containers() fails with:

Error in `arrange()` at patter/R/assemble-data-internals.R:156:3:
ℹ In argument: `..2 = .data$sensor_id`.
Caused by error in `.data$sensor_id`:
! Column `sensor_id` not found in `.data`.
Run `rlang::last_trace()` to see where the error occurred.

assemble_acoustics_containers() should return an empty data.table or NULL instead.

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