Make sure that you first installed gtk2-runtime-2.22.0-2010-10-21-ash.exe.

Download and unzip R-1.13.1.ZIP. Copy the entire folder to c:\program files\R.