iptools is a set of tools for working with IP addresses. The aim is to provide functionality not presently available with any existing R package and to do so with as much speed as possible. To that end, many of the operations are written in
Rcpp and require installation of the
AsioHeaders package. A current, lofty goal is to mimic most of the functionality of the Python
iptools module and make IP addresses first class R objects.
Available on CRAN
Thanks to @eddelbuettel we’ve thinned down this version of
iptools and it should also work on Windows now!
The package primarily supports IPv4 addresses due to deficiencies in R’s support for large numbers, but there is IPv6 support for some functionality, and we plan to build more in as R improves and as we do. Functionality includes:
To install the development version:
devtools::install_github("hrbrmstr/iptools") # or install.packages("iptools")
iptools depends on the AsioHeaders package which is now in CRAN.
library(iptools) library(testthat) date() #>  "Wed Feb 27 17:08:51 2019" test_dir("tests/") #> ✔ | OK F W S | Context #> ══ testthat results ══════════════════════════════════════════════════════ #> OK: 82 SKIPPED: 0 FAILED: 0 #> #> ══ Results ════════════════════════════════════════════════════════════════ #> Duration: 0.3 s #> #> OK: 0 #> Failed: 0 #> Warnings: 0 #> Skipped: 0 #> #> OLE - gnarly code.
|Lang||# Files||(%)||LoC||(%)||Blank lines||(%)||# Lines||(%)|
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.