You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#> Error in eval(expr, envir, enclos) :
#> Not compatible with STRSXP: [type=NULL].
The error is not because of the call to plot_sf(), although that plot is empty; it's because of the call to st_is_empty(), which seems to not be expecting subclasses:
plot_sf(s)
try(st_is_empty(s))
#> Error in eval(expr, envir, enclos) : #> Not compatible with STRSXP: [type=NULL].
Describe the bug
Some
plot()
methods do not anticipate subclasses of sfc objects. This makes it difficult to write extensions to the sf package.To Reproduce
Here's an example with a linestring.
Failure:
try(plot(s))
The error is not because of the call to
plot_sf()
, although that plot is empty; it's because of the call tost_is_empty()
, which seems to not be expecting subclasses:Created on 2024-08-31 with reprex v2.1.0
Additional context
Created on 2024-08-31 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: