tidycensus icon indicating copy to clipboard operation
tidycensus copied to clipboard

Throw errorin interpolate_pw() if inputs have different CRS and CRS not supplied

Open jayrobwilliams opened this issue 10 months ago • 1 comments

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.

jayrobwilliams avatar Apr 21 '24 14:04 jayrobwilliams

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?

jayrobwilliams avatar May 03 '24 16:05 jayrobwilliams