tests/testthat/_snaps/ip_version.md

input validation works

Code
  is_ipv4(1L)
Condition
  Error in `is_ipv4()`:
  ! `x` must be an <ip_address> or <ip_network> vector
Code
  is_ipv6(1L)
Condition
  Error in `is_ipv6()`:
  ! `x` must be an <ip_address> or <ip_network> vector
Code
  max_prefix_length(1L)
Condition
  Error in `max_prefix_length()`:
  ! `x` must be an <ip_address> or <ip_network> vector


Try the ipaddress package in your browser

Any scripts or data that you put into this service are public.

ipaddress documentation built on April 4, 2023, 9:09 a.m.