added check option to RawRStream