We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff51048 + 18611e0 commit dce482bCopy full SHA for dce482b
R/read.R
@@ -310,7 +310,7 @@ abbreviate_shapefile_names = function(x) {
310
if (length(wh. <- grep("\\.", fld_names) > 0))
311
fld_names[wh.] <- gsub("\\.", "_", fld_names[wh.])
312
313
- if (length(fld_names) != length(unique(fld_names)))
+ if (anyDuplicated(fld_names))
314
stop("Non-unique field names") # nocov
315
316
names(x) = fld_names
0 commit comments