Skip to content

Commit

Permalink
8.1.2
Browse files Browse the repository at this point in the history
Removed unwanted line.
  • Loading branch information
ip2location committed Feb 1, 2023
1 parent 96fab64 commit 8747e2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ip2location
Title: Lookup for IP Address Information
Version: 8.1.1
Version: 8.1.2
Author: IP2Location
Maintainer: IP2Location <support@ip2location.com>
Description: Enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage type, address type and IAB category that any IP address or hostname originates from. Supported IPv4 and IPv6.
Expand All @@ -15,4 +15,4 @@ SystemRequirements: IP2Location Python library
Imports: reticulate (>= 1.13), jsonlite (>= 1.6), ggplot2 (>= 3.4), maps (>= 3.4.1), scales (>= 1.2.1)
RoxygenNote: 7.2.3
NeedsCompilation: no
Packaged: 2023-01-19 07:03:38 UTC; COMFORT
Packaged: 2023-02-01 03:30:00 UTC; COMFORT
7 changes: 4 additions & 3 deletions R/IP2Location_plotmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ plot_map <- function(ips){

names(ipData)[1] = "group"

data <- read.csv("inst/countrynames_mapping.txt", header=TRUE)
path = find.package("ip2location")

#data <- read.csv("inst\\countrynames_mapping.txt", header=TRUE)
data <- read.csv(paste(path, '/countrynames_mapping.txt', sep = ""), header=TRUE)

data$matched_country_name[data$matched_country_name == ''] <- NA

Expand All @@ -57,8 +60,6 @@ plot_map <- function(ips){
}
}

print(ipData)

worldMapIPs <- merge(mapData, ipData, by.x = "region", by.y = "group", all.x = TRUE)
worldMapIPs <- worldMapIPs[order(worldMapIPs[, "order"]), ]
worldMapIPs[is.na(worldMapIPs)] <- 0
Expand Down

0 comments on commit 8747e2a

Please sign in to comment.