| 93 | } |
| 94 | |
| 95 | void arrow::r::validate_index(int64_t i, int64_t len) { |
| 96 | if (i == NA_INTEGER) { |
| 97 | cpp11::stop("'i' cannot be NA"); |
| 98 | } |
| 99 | if (i < 0 || i >= len) { |
| 100 | cpp11::stop("subscript out of bounds"); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | // [[arrow::export]] |
| 105 | bool Array__IsNull(const std::shared_ptr<arrow::Array>& x, R_xlen_t i) { |