Skip to content

Commit

Permalink
fix GEOS version check; #844
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Sep 13, 2018
1 parent daadcee commit d52e411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ setOldClass("sfg")
.onAttach = function(libname, pkgname) {
m = paste0("Linking to GEOS ", CPL_geos_version(), ", GDAL ", CPL_gdal_version(), ", proj.4 ", CPL_proj_version())
packageStartupMessage(m)
if (grep(sf:::CPL_geos_version(FALSE, TRUE), sf:::CPL_geos_version(TRUE)) != 1)
if (length(grep(sf:::CPL_geos_version(FALSE, TRUE), sf:::CPL_geos_version(TRUE))) != 1)
packageStartupMessage("WARNING: different compile-time and runtime versions for GEOS")
}

Expand Down

0 comments on commit d52e411

Please # to comment.