Skip to content

Commit 3b83f1a

Browse files
Update setup_r5.R
thanls, alex. I`ve made a small change just to make sure the package throws an error (not just a warning) when the geographc extent of the input data is too large
1 parent 16e3e5a commit 3b83f1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

r-package/R/setup_r5.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ setup_r5 <- function(data_path,
167167
if (!is.null(ex)) {
168168
msg <- rJava::.jcall(ex, "S", "toString")
169169
if (grepl("Geographic extent of street layer", msg)) {
170-
warning("Street layer too large.")
171-
return(NULL)
170+
stop("Street layer too large.")
172171
} else {
173172
ex$printStackTrace()
174173
return(NULL)

0 commit comments

Comments
 (0)