Software Open Access
Jonathan Callahan; Roger Andre; Helen Miller; Eli Grosman; Zach Stednick; tinaisat; tbergama
This addresses the following error seen when using internal data in a dplyr context:
> IS <- SimpleCountriesEEZ %>% dplyr::filter(countryCode == "IS")
Error in `vec_size()`:
! `x` must be a vector, not a <sfc_MULTIPOLYGON/sfc> object.
This error is explained here:
https://www.mm218.dev/posts/2022-12-01-sf-in-packages/ and the simplest
solution for this spatially-oriented package is to simply move sf from an
import to a dependency (by moving it to the "Depends:" section of DESCRIPTION
).
Name | Size | |
---|---|---|
MazamaScience/MazamaSpatialUtils-0.8.4.zip
md5:557e814a0b4a90dd3efc7a8f8d4ac6d6 |
8.8 MB | Download |
All versions | This version | |
---|---|---|
Views | 119 | 10 |
Downloads | 5 | 1 |
Data volume | 48.6 MB | 8.8 MB |
Unique views | 109 | 9 |
Unique downloads | 5 | 1 |