Open dave-lovell opened 7 months ago
bulk_postcode_lookup() used to only work accept this syntax:
bulk_postcode_lookup()
bulk_postcode_lookup(list(postcodes = c("PR30SG", "M456GN", "EX165BL"))
But now it also supports this syntax:
## Postcodes can be provided as individual arguments bulk_postcode_lookup("PR30SG", "M456GN", "EX165BL") ## Or as one or more vectors: bulk_postcode_lookup(c("PR30SG", "M456GN"), "EX165BL")
The main change is only a couple of lines:
bulk_postcode_lookup <- function(...) { dots <- unlist(c(...), recursive = TRUE) postcodes <- list(postcodes = dots) #... }
@erzk are you able to review this? Happy to amend if you think another approach is needed
bulk_postcode_lookup()
used to only work accept this syntax:But now it also supports this syntax:
The main change is only a couple of lines: