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.
Ref #200. The problem is that
sf_extSoftVersion()["PROJ"]
is defined only forsf >= 1.0
and we do not enforce that version ofsf
so that subset operation returns NA. Looking at the sf repository,sf_extSoftVersion()["proj.4"]
andsf_extSoftVersion()["PROJ"]
returns the same value, so we can simply checksf_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.