A sufficient condition is that $R$ is artinian (for example, finite). [Reduce to the local case and apply Jack's argument; or [this proof][1] which avoids the maximal ideal description of units]. [1]: https://mathoverflow.net/questions/32875/lifting-units-from-modulus-n-to-modulus-mn/32883#32883