luukvdmeer / sfnetworks

Tidy Geospatial Networks in R
https://luukvdmeer.github.io/sfnetworks/
Other
338 stars 20 forks source link

Check extSoftVersion of proj.4 only #201

Closed agila5 closed 2 years ago

agila5 commented 2 years ago

Ref #200. The problem is that sf_extSoftVersion()["PROJ"] is defined only for sf >= 1.0 and we do not enforce that version of sf so that subset operation returns NA. Looking at the sf repository, sf_extSoftVersion()["proj.4"] and sf_extSoftVersion()["PROJ"] returns the same value, so we can simply check sf_extSoftVersion()["proj.4"] (although I'm not sure if that will be always true). See also https://github.com/luukvdmeer/sfnetworks/issues/198#issuecomment-1003943394.