MAHDLab / rIP

Detecting Fraud in Online Surveys by Tracing, Scoring, and Visualizing IP Addresses
MIT License
26 stars 4 forks source link

STRSXP error #7

Closed bshor closed 4 years ago

bshor commented 4 years ago

Hi everyone,

I'm getting an error with getIPinfo() using IPHub. Here's what it looks like:

z <- getIPinfo(d=ubi.out, "ipaddress",iphub_key = "xxx")

Error in iptools::ip_classify(ips[i]) :
  Not compatible with STRSXP: [type=list].

My API key totally worked in the Shiny app with several hundred observations. Now I'm in the several thousand so I wanted to use the R package.

Any ideas?

bshor commented 4 years ago

I figured out the cause: the error indicates the input is a tibble (automatically produced by dplyr) rather than a base R data frame. The user solution is just to transform the tibble to a data frame, then everything works.

pdwaggoner commented 4 years ago

Thanks Boris!