tidycensus
tidycensus copied to clipboard
Throw errorin interpolate_pw() if inputs have different CRS and CRS not supplied
Check to see if from
, to
, and weights
have the same CRS if CRS is not supplied as a function argument to interpolate_pw()
. This saves time if weights
is large and a long time is spent generating centroids before sf::st_join()
will inevitably fail when trying to create denomiators
due to the mismatched CRS.
I don't think my changes would have have had any effect on package compilation. I'm not familiar enough with R development on Windows to tell if the windows-latest check failure is an actual issue, or something going on with the runner. @walkerke could you let me know if I need to modify my code at all?