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
It's a very specific case, input of length==2, numeric input, but I think it's worthy of a message to warn potential mistaken input - especially if either value is outside (1, ncell) or has fractional component. Happy to PR just wanted to record the idea, after a colleague asked me about it, they'd been trying to figure it out for a while.
The text was updated successfully, but these errors were encountered:
mdsumner
changed the title
extract: helper/checker for atomic vector input
extract: helper/checker for length-2 atomic vector input
Mar 4, 2025
A very common error I have made in the past is to input a point for extract and expect a value for a single point:
It's a very specific case, input of length==2, numeric input, but I think it's worthy of a message to warn potential mistaken input - especially if either value is outside
(1, ncell)
or has fractional component. Happy to PR just wanted to record the idea, after a colleague asked me about it, they'd been trying to figure it out for a while.The text was updated successfully, but these errors were encountered: