Compute R every iteration