Skip to content

Comments

Update survey scripts to account for sf() updates and R 4.5.2#40

Open
rtesra wants to merge 1 commit intomasterfrom
r-version-4.5.2-updates
Open

Update survey scripts to account for sf() updates and R 4.5.2#40
rtesra wants to merge 1 commit intomasterfrom
r-version-4.5.2-updates

Conversation

@rtesra
Copy link
Contributor

@rtesra rtesra commented Feb 19, 2026

  • Remove spud dependency as package is deprecated
  • Fix GE dataset parsing broken by R/sf upgrade
    • After upgrading to R 4.5.2, readRDS() now returns cached GE GPS files as sf
      objects rather than plain data frames. This caused type.convert() to fail on
      the retained sfc geometry column.
    • Fix adds st_drop_geometry() before as.data.frame() to remove the geometry
      column before processing, with the sf object reconstructed from LONGNUM/LATNUM
      as before.

@rtesra rtesra requested review from jeffeaton and r-ash February 19, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant