dialr
Parse, Format, and Validate International Phone Numbers
The R phone-number package stopped only parsing numbers and started asking them where they are.
◆Recent moves
- 3y ago
Invalid values short-circuit the Java parser, fixing a freeze
Values that are not numbers at all — empty strings, NA — are now filtered before they reach the Java parser, which both speeds up bulk parsing sharply and fixes a freeze that hit after a large volume of invalid inputs. Progress bar visibility moves from a package-wide option to a per-call argument.
View source ↗ - 5y ago
Java initialises on load, so :: calls work without library()
rJava initialisation moves to .onLoad(), so dialr::phone() finally works without a preceding library(dialr) — a real annoyance for a Java-backed package used inside other packages. The old one-shot processing functions become hard errors, with removal promised for the next major version.
View source ↗ - 6y ago
R 4.0 bump and tests decoupled from libphonenumber data
An R 4.0.0 version bump plus tests rewritten to stop depending on specific libphonenumber data values, so upstream metadata updates no longer break the suite. Maintenance only.
View source ↗ - 6y ago
Phone vectors work in tibbles again after the 3.0.0 change
Repairs phone vectors inside tibbles, broken by tibble 3.0.0's changed handling of list-based classes, by giving them the list class as the tibble changelog recommends. The maintainer notes vctrs as the eventual home for the class once it stabilises — a plan still unexecuted three years later.
View source ↗ - 7y ago
Carrier, geocode, and timezone lookups added
⚡ SPARKThe release that widened the package's job. Until now dialr answered questions about a number's form — is it valid, what region, what type; from here it answers questions about the world behind the number. Nothing since has extended this surface, which makes it the high-water mark of the package's scope.
View source ↗ - 7y ago
Tenfold rJava speedup and proper phone equality
Roughly tenfold speedups from more efficient rJava access and caching of static values — the recurring tax of calling Java from R. is_match() gives phone vectors a correct equality test and is wired into == and !=, and get_example() generates sample numbers per region and type.
View source ↗