Skip to content

Commit ae55d3e

Browse files
committed
suppress warnings in match-pts-to-verts when x,y are NA
1 parent 5533a48 commit ae55d3e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: m4ra
22
Title: Many-to-Many Multi-Modal Routing Aggregator
3-
Version: 0.1.1.049
3+
Version: 0.1.1.050
44
Authors@R:
55
person(given = "Mark",
66
family = "Padgham",

R/weight-networks.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ cache_vertex_indices <- function (city) {
148148
)
149149
)
150150
if (!fs::file_exists (fname)) {
151-
index <- dodgr::match_points_to_verts (v1, v2 [, c ("x", "y")])
151+
# dodgr issues warnings if any (x, y) values are NA:
152+
suppressWarnings (
153+
index <-
154+
dodgr::match_points_to_verts (v1, v2 [, c ("x", "y")])
155+
)
152156
saveRDS (index, fname)
153157
}
154158
flist <- c (flist, fname)

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"codeRepository": "https://github.com/UrbanAnalyst/m4ra",
88
"issueTracker": "https://github.com/UrbanAnalyst/m4ra/issues",
99
"license": "https://spdx.org/licenses/GPL-3.0",
10-
"version": "0.1.1.049",
10+
"version": "0.1.1.050",
1111
"programmingLanguage": {
1212
"@type": "ComputerLanguage",
1313
"name": "R",

0 commit comments

Comments
 (0)