s/size_t/R_xlen_t/ to quiet -W-sign-compare