(Actually I vaguely remember encountering the same problem in MRO 3.3, and solved it using similar method. Unfortunately I didn’t write it down.)
Note: MRO means Microsoft R Open (previously Revolution R)