| 66 | |
| 67 | template <typename T> |
| 68 | std::shared_ptr<T> MaybeUnbox(const char* class_name, SEXP x) { |
| 69 | if (Rf_inherits(x, "ArrowObject") && Rf_inherits(x, class_name)) { |
| 70 | return cpp11::as_cpp<std::shared_ptr<T>>(x); |
| 71 | } |
| 72 | return nullptr; |
| 73 | } |
| 74 | |
| 75 | namespace cpp11 { |
| 76 |
nothing calls this directly
no outgoing calls
no test coverage detected