Is your feature request related to a problem? Please describe.
When attempting to select data that doesn't exist within a specific area of interest, arcgislayers::arc_select throws an un-helpful error.
Describe the solution you'd like
It would be nice for there to be a clear error that informs the user that no data exists within their area of interest. Alternatively, arc_select could return an empty sf object.
Describe alternatives you've considered
I was able to work around this in a script I'm developing by wrapping the error in a tryCatch statement, but it took me a while to realize what the issue really was.
Additional context
Here is a reprex (pardon the use of other packages):
Is your feature request related to a problem? Please describe. When attempting to select data that doesn't exist within a specific area of interest,
arcgislayers::arc_select
throws an un-helpful error.Describe the solution you'd like It would be nice for there to be a clear error that informs the user that no data exists within their area of interest. Alternatively,
arc_select
could return an emptysf
object.Describe alternatives you've considered I was able to work around this in a script I'm developing by wrapping the error in a
tryCatch
statement, but it took me a while to realize what the issue really was.Additional context Here is a reprex (pardon the use of other packages):
Created on 2024-02-10 with reprex v2.1.0