You are reporting the paste Singular matrix in invert rtr.