Last spring I completed a small project to write a regionalization/political districting program in R. I never really did anything with it because it’s pretty slow. It is very much a work in progress, however I release it to the world here:
The main program is called reRegionalize.R. It calls the other code, so all of these should be unzipped into the same folder. It works with an example data set, but it’s fairly easy to use your own.
If I start working on it again, I will post it on githuband update the link. Use at your own risk.