Skip to content

Error when downloading deployments from multiple projects #430

@PieterjanVerhelst

Description

@PieterjanVerhelst

When I download the deployments from a number of acoustic_project_codes I get an error that the codes cannot be found. However, when I run the same code for one of the codes, it works.

network_projects <- c("apelafico",
                      "leopold",
                      "cpodnetwork",
                      "dijle",
                      "albert",
                      "bpns",
                      "demer",
                      "ws1",
                      "ws2",
                      "ws3",
                      "zeeschelde",
                      "2019_Grotenete",
                      "SWIMWAY_2021",
                      "FISHINTEL",
                      "mrc_vliz",
                      "Orstedcod",
                      "FISHOWF",        # detections at mouth of Loire
                      "Danish_Straits") 

deployments <- get_acoustic_deployments(my_con, acoustic_project_code = network_projects, open_only = FALSE)

The error I get is the following:

Error: Can't find acoustic_project_code `apelafico`, `leopold`, `cpodnetwork`, `dijle`, `albert`, `bpns`, `demer`, `ws1`, `ws2`, `ws3`, `zeeschelde`, `2019_grotenete`, `swimway_2021`, `fishintel`, `mrc_vliz`, `orstedcod`, `fishowf` and/or `danish_straits` in: 2004_gudena, 2011_bovenschelde, 2011_loire, 2011_warnow, 2013_foyle, 2013_maas, 2014_frome, 2014_nene, 2015_phd_gutmann_roberts, 2016_diaccia_botrona, 2017_fremur, 2020_phd_winter, 2021_yeelaz, 2022_beaver_durme, 2023_meuse_lith_linne, 2024-2031_northsea_ecowende, 2024_anguilla_bb_harlingen, 2024...

The strange thing is that the error mentions acoustic_project_codes that are not in the provided list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions