Add R_ERROR

and yes, it's needed