fixing install_r