The R32 has a very narrow front hub, so ruling out a front hub motor.
It also has a 5-speed rear hub, so ruling out a rear hub motor.
A middle motor will stop the fold.
On top of those challenges, it's heavy.
Maybe a roller motor?
As saneagle said, it's a jiob for a specialist, not an off the...