| 26 | namespace internal { |
| 27 | |
| 28 | inline bool is_atomic(SEXP x) { return Rf_length(x) == 1; } |
| 29 | inline bool is_matrix(SEXP x) { |
| 30 | SEXP dim = Rf_getAttrib( x, R_DimSymbol); |
| 31 | return dim != R_NilValue && Rf_length(dim) == 2; |
no outgoing calls
no test coverage detected