Deleting malformed R markups