test code for r_install