Coder Social home page Coder Social logo

ipapi's Introduction

Build Status

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

devtools::install_github("hrbrmstr/ipapi")

Usage

library(ipapi)
## Loading required package: data.table
# current verison
packageVersion("ipapi")
## [1] '0.1'
geolocate(c(NA, "10.0.1.1", "", "72.33.67.89", "dds.ec", " ", "search.twitter.com"),
                        .progress=FALSE)
##                                           as          city       country countryCode                             isp
## 1: AS7922 Comcast Cable Communications, Inc.       Eastham United States          US                   Comcast Cable
## 2:                                        NA            NA            NA          NA                              NA
## 3: AS7922 Comcast Cable Communications, Inc.       Eastham United States          US                   Comcast Cable
## 4:      AS59 University of Wisconsin Madison       Madison United States          US University of Wisconsin Madison
## 5:               AS62567 Digital Ocean, Inc.      New York United States          US                   Digital Ocean
## 6: AS7922 Comcast Cable Communications, Inc.       Eastham United States          US                   Comcast Cable
## 7:                      AS13414 Twitter Inc. San Francisco United States          US                         Twitter
##        lat       lon                             org         query region    regionName  status            timezone
## 1: 41.8301  -69.9739                   Comcast Cable 50.252.233.22     MA Massachusetts success    America/New_York
## 2:      NA        NA                              NA      10.0.1.1     NA            NA    fail                  NA
## 3: 41.8301  -69.9739                   Comcast Cable 50.252.233.22     MA Massachusetts success    America/New_York
## 4: 43.0731  -89.4012 University of Wisconsin Madison   72.33.67.89     WI     Wisconsin success     America/Chicago
## 5: 40.7490  -73.9865                   Digital Ocean 162.243.111.4     NY      New York success    America/New_York
## 6: 41.8301  -69.9739                   Comcast Cable 50.252.233.22     MA Massachusetts success    America/New_York
## 7: 37.7697 -122.3933                         Twitter 199.59.148.84     CA    California success America/Los_Angeles
##      zip
## 1: 02642
## 2:    NA
## 3: 02642
## 4: 53706
## 5: 10118
## 6: 02642
## 7: 94107

Test Results

library(ipapi)
library(testthat)

Sys.Date()
## [1] "2015-03-09"
test_dir("tests/")
## basic functionality : .

ropensci_footer

ipapi's People

Contributors

bryanbritten avatar cbdavis avatar hrbrmstr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ipapi's Issues

Error with upload to Shiny Server

The package works fine for me on my local machine, but when I try to upload it to an app using Shiny Server, I get the following error.

Loading required package: ipapi
Loading required package: data.table
Error : objects ‘winProgressBar’, ‘getWinProgressBar’, ‘setWinProgressBar’ are not exported by 'namespace:utils'

Package data.table automatically gets loaded as it is a requirement for ipapi.

rOpenSci

Your README says this is part of rOpenSci but I don't see it in the R package list on the rOpenSci page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.