Closed topepo closed 9 months ago
@topepo You are right, guilty as charged. These hacks should have not made it into the version on cran, they are mostly convenience two liners that were meant to be replaced by local copies/alternative, but somehow that did not happen. For spatial_recipes
, using NextMethod
is an elegant solution. For the moment, I'll go with that, but it would be nice indeed to make the spatial column work natively in recipes
.
I'm probably the last person to get preachy about this but in the process of #36 we did see:
I can completely see that a similar issue will pop up in one of these.
I suggest putting in issues for the respective packages about your needs. I think that there are a few options to make this better:
yardstick:::is_binary()
available.yardstick:::is_binary()
withidentical(x, "binary")
in-line and resolve that.NextMethod()
on them (since they inherit a basic recipe's class) instead of calling the unexported function.