This PR addresses a slight discrepancy between documentation and code. In the documentation for st_split it is noted that
if y contains more than one feature geometry, the geometries are st_combined
though this didn't happen in the code. It simply threw an error via stopifnot(length(y) == 1). Therefore I have adjusted the code to accommodate what the documentation states.
This PR addresses a slight discrepancy between documentation and code. In the documentation for
st_split
it is noted thatthough this didn't happen in the code. It simply threw an error via
stopifnot(length(y) == 1)
. Therefore I have adjusted the code to accommodate what the documentation states.The issue was originally raised in this SO question