fix install_R.sh dosen't check failed installation