an improvement to sf revealed a coding error in opensensmapR, and breaks the vignette building. If you run osem-intro.Rmd up to line 147, and then do
> st_as_sf(pm25) |> names()
# [1] NA NA NA NA NA NA "NA."
you see that the column names vanished. This now breaks because the geometry column name is set to geometry and passed on to sf_sf() where it needs to be found (but isn't). The error comes from
https://github.com/sensebox/opensensmapR/blob/master/R/external_generics.R#L27
where mostattributes<- fails to set names when columns are deselected:
an improvement to
sf
revealed a coding error in opensensmapR, and breaks the vignette building. If you runosem-intro.Rmd
up to line 147, and then doyou see that the column names vanished. This now breaks because the geometry column name is set to
geometry
and passed on tosf_sf()
where it needs to be found (but isn't). The error comes from https://github.com/sensebox/opensensmapR/blob/master/R/external_generics.R#L27 wheremostattributes<-
fails to set names when columns are deselected: