A WIP Re-imagining of {iptools}
The following functions are implemented:
range_boundaries
: Retrieve range boundaries for a character vector of IPv4/IPv6 CIDRsremotes::install_git("https://git.rud.is/hrbrmstr/iptools2.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/iptools2")
# or
remotes::install_gitlab("hrbrmstr/iptools2")
# or
remotes::install_bitbucket("hrbrmstr/iptools2")
# or
remotes::install_github("hrbrmstr/iptools2")
NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.
library(iptools2)
# current version
packageVersion("iptools2")
## [1] '0.1.0'
range_boundaries(
c("2001:4801::/32", "2001:0db8::/127", "10.1.10.0/24", "2001:0db8::/119", "wat")
)
## cidr canonical start end n_hosts
## 1 2001:4801::/32 2001:4801::/32 2001:4801:: 2001:4802:: 7.922816e+28
## 2 2001:0db8::/127 2001:db8::/127 2001:db8:: 2001:db8::2 2.000000e+00
## 3 10.1.10.0/24 10.1.10.0/24 10.1.10.1 10.1.10.255 2.540000e+02
## 4 2001:0db8::/119 2001:db8::/119 2001:db8:: 2001:db8::200 5.120000e+02
## 5 wat <NA> <NA> <NA> NA