# NOT RUN {
#Valid, data.frame output
result <- ip_api("2607:FB90:426:DC1D:CFC4:4875:8BC2:4D93")
#Invalid, data.frame output
result <- ip_api("argh")
#Valid list output
result <- ip_api("2607:FB90:426:DC1D:CFC4:4875:8BC2:4D93", as_data_frame = FALSE)
#Invalid list output
result <- ip_api("argh", as_data_frame = FALSE)
# }
Run the code above in your browser using DataLab