
In-place update of a single non-geometry column in a GeoPackage layer
Source:R/gpkg_metadata.R
gpkg_update_col.RdUpdates `col` for the rows whose `id_col` matches `id_vals`, via a temporary join table. Layer triggers are dropped for the write and restored afterward (they call SpatiaLite functions unavailable under RSQLite, which would abort the UPDATE). `id_vals` and `col_vals` are parallel vectors of equal length.