alarm-redist / redist

Simulation methods for legislative redistricting.
https://alarm-redist.github.io/redist/
GNU General Public License v2.0
67 stars 23 forks source link

Adds all walnuts functions to redist #183

Open dinglucy opened 8 months ago

dinglucy commented 8 months ago

Adds the optimal transfer function as described, along with necessary helper functions to the parity.R document.

dinglucy commented 8 months ago

I put everything on one branch - please let me know if you would prefer optimal_transfer and walnuts split into two different pull requests. The optimal_transfer function is added to the parity.R document. The walnuts code is added to a new file called walnuts.R in the R folder and it uses two new C++ functions that are in boundary.cpp. Apologies - only the two main functions are full commented. I will comment the rest of it when I can, I just wanted to go ahead and share the process.

christopherkenny commented 7 months ago

Hey @dinglucy, are you able to run devtools::document() and see if that fixes the CI failure?