changed the targets that call R to fail if R fails