|
47 | 47 | _args = CDR(_args); |
48 | 48 | SEXP a = CAR(_args); |
49 | 49 | if (TYPEOF(a) != INTSXP) { |
50 | | - Rf_error("typeof(a) must be 'integer', not '%s'", R_typeToChar(a)); |
| 50 | + Rf_error("typeof(a) must be 'integer', not '%s'", Rf_type2char(TYPEOF(a))); |
51 | 51 | } |
52 | 52 | const int* const a__ = INTEGER(a); |
53 | 53 | const R_xlen_t a__len_ = Rf_xlength(a); |
|
56 | 56 | _args = CDR(_args); |
57 | 57 | SEXP b = CAR(_args); |
58 | 58 | if (TYPEOF(b) != INTSXP) { |
59 | | - Rf_error("typeof(b) must be 'integer', not '%s'", R_typeToChar(b)); |
| 59 | + Rf_error("typeof(b) must be 'integer', not '%s'", Rf_type2char(TYPEOF(b))); |
60 | 60 | } |
61 | 61 | const int* const b__ = INTEGER(b); |
62 | 62 | const R_xlen_t b__len_ = Rf_xlength(b); |
|
128 | 128 | _args = CDR(_args); |
129 | 129 | SEXP a = CAR(_args); |
130 | 130 | if (TYPEOF(a) != REALSXP) { |
131 | | - Rf_error("typeof(a) must be 'double', not '%s'", R_typeToChar(a)); |
| 131 | + Rf_error("typeof(a) must be 'double', not '%s'", Rf_type2char(TYPEOF(a))); |
132 | 132 | } |
133 | 133 | const double* const a__ = REAL(a); |
134 | 134 | const R_xlen_t a__len_ = Rf_xlength(a); |
|
137 | 137 | _args = CDR(_args); |
138 | 138 | SEXP b = CAR(_args); |
139 | 139 | if (TYPEOF(b) != INTSXP) { |
140 | | - Rf_error("typeof(b) must be 'integer', not '%s'", R_typeToChar(b)); |
| 140 | + Rf_error("typeof(b) must be 'integer', not '%s'", Rf_type2char(TYPEOF(b))); |
141 | 141 | } |
142 | 142 | const int* const b__ = INTEGER(b); |
143 | 143 | const R_xlen_t b__len_ = Rf_xlength(b); |
|
209 | 209 | _args = CDR(_args); |
210 | 210 | SEXP a = CAR(_args); |
211 | 211 | if (TYPEOF(a) != REALSXP) { |
212 | | - Rf_error("typeof(a) must be 'double', not '%s'", R_typeToChar(a)); |
| 212 | + Rf_error("typeof(a) must be 'double', not '%s'", Rf_type2char(TYPEOF(a))); |
213 | 213 | } |
214 | 214 | const double* const a__ = REAL(a); |
215 | 215 | const R_xlen_t a__len_ = Rf_xlength(a); |
|
218 | 218 | _args = CDR(_args); |
219 | 219 | SEXP b = CAR(_args); |
220 | 220 | if (TYPEOF(b) != LGLSXP) { |
221 | | - Rf_error("typeof(b) must be 'logical', not '%s'", R_typeToChar(b)); |
| 221 | + Rf_error("typeof(b) must be 'logical', not '%s'", Rf_type2char(TYPEOF(b))); |
222 | 222 | } |
223 | 223 | const int* const b__ = LOGICAL(b); |
224 | 224 | const R_xlen_t b__len_ = Rf_xlength(b); |
|
290 | 290 | _args = CDR(_args); |
291 | 291 | SEXP a = CAR(_args); |
292 | 292 | if (TYPEOF(a) != CPLXSXP) { |
293 | | - Rf_error("typeof(a) must be 'complex', not '%s'", R_typeToChar(a)); |
| 293 | + Rf_error("typeof(a) must be 'complex', not '%s'", Rf_type2char(TYPEOF(a))); |
294 | 294 | } |
295 | 295 | const Rcomplex* const a__ = COMPLEX(a); |
296 | 296 | const R_xlen_t a__len_ = Rf_xlength(a); |
|
299 | 299 | _args = CDR(_args); |
300 | 300 | SEXP b = CAR(_args); |
301 | 301 | if (TYPEOF(b) != CPLXSXP) { |
302 | | - Rf_error("typeof(b) must be 'complex', not '%s'", R_typeToChar(b)); |
| 302 | + Rf_error("typeof(b) must be 'complex', not '%s'", Rf_type2char(TYPEOF(b))); |
303 | 303 | } |
304 | 304 | const Rcomplex* const b__ = COMPLEX(b); |
305 | 305 | const R_xlen_t b__len_ = Rf_xlength(b); |
|
370 | 370 | _args = CDR(_args); |
371 | 371 | SEXP x = CAR(_args); |
372 | 372 | if (TYPEOF(x) != REALSXP) { |
373 | | - Rf_error("typeof(x) must be 'double', not '%s'", R_typeToChar(x)); |
| 373 | + Rf_error("typeof(x) must be 'double', not '%s'", Rf_type2char(TYPEOF(x))); |
374 | 374 | } |
375 | 375 | const double* const x__ = REAL(x); |
376 | 376 | const R_xlen_t x__len_ = Rf_xlength(x); |
|
0 commit comments