Skip to content

Commit d52e411

Browse files
committed
fix GEOS version check; #844
1 parent daadcee commit d52e411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/init.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ setOldClass("sfg")
7171
.onAttach = function(libname, pkgname) {
7272
m = paste0("Linking to GEOS ", CPL_geos_version(), ", GDAL ", CPL_gdal_version(), ", proj.4 ", CPL_proj_version())
7373
packageStartupMessage(m)
74-
if (grep(sf:::CPL_geos_version(FALSE, TRUE), sf:::CPL_geos_version(TRUE)) != 1)
74+
if (length(grep(sf:::CPL_geos_version(FALSE, TRUE), sf:::CPL_geos_version(TRUE))) != 1)
7575
packageStartupMessage("WARNING: different compile-time and runtime versions for GEOS")
7676
}
7777

0 commit comments

Comments
 (0)