Skip to content

Feature request: bulk_postcode_lookup should accept a character vector and/or ... #18

@dave-lovell

Description

@dave-lovell

bulk_postcode_lookup() requires postcodes to be a length-one list that contains only a character vector, as exemplified in the function's help page:

pc_list <- list(postcodes = c("PR3 0SG", "M45 6GN", "EX165BL"))
bulk_postcode_lookup(pc_list)

I'm continually caught off-guard by this counter-intuitive requirement. What is the purpose of the list?

Please implement support for accepting a character vector and/or ..., like so:

bulk_postcode_lookup(c("PR3 0SG", "M45 6GN", "EX165BL"))
bulk_postcode_lookup("PR3 0SG", "M45 6GN", "EX165BL")

Those inputs could be coerced into list form under the hood so that the functionality of old code is preserved.

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