Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hrbrmstr/ipapi

An R package to geolocate IPv4/6 addresses and/or domain names using ip-api.com's API
https://github.com/hrbrmstr/ipapi

ipapi r r-cyber rstats

Last synced: 2 months ago
JSON representation

An R package to geolocate IPv4/6 addresses and/or domain names using ip-api.com's API

Awesome Lists containing this project

README

        

---
title: "README"
author: "Bob Rudis"
date: March 09, 2015
output:
md_document:
variant: markdown_github
---

[![Build Status](https://travis-ci.org/hrbrmstr/ipapi.png)](https://travis-ci.org/hrbrmstr/ipapi)

ipapi is a package to geolocate IPv4/6 addresses and/or domain names using ip-api.com's API

The following functions are implemented:

- `geolocate` - lookup a vector of IPv4/6 addresses and/or domain names and return a `data.table` of results

### News

- Version `0.1` released

### Installation

```{r eval=FALSE}
devtools::install_github("hrbrmstr/ipapi")
```

```{r echo=FALSE, message=FALSE, warning=FALSE, error=FALSE}
options(width=120)
```

### Usage

```{r}
library(ipapi)

# current verison
packageVersion("ipapi")

geolocate(c(NA, "10.0.1.1", "", "72.33.67.89", "dds.ec", " ", "search.twitter.com"),
.progress=FALSE)

```

### Test Results

```{r}
library(ipapi)
library(testthat)

Sys.Date()

test_dir("tests/")
```

[![ropensci_footer](http://ropensci.org/public_images/github_footer.png)](http://ropensci.org)