| 222 | } |
| 223 | |
| 224 | arrow::Status Close() override { |
| 225 | if (closed_) { |
| 226 | return arrow::Status::OK(); |
| 227 | } |
| 228 | |
| 229 | closed_ = true; |
| 230 | |
| 231 | return SafeCallIntoRVoid([&]() { cpp11::package("base")["close"](connection_sexp_); }, |
| 232 | "close() on R connection"); |
| 233 | } |
| 234 | |
| 235 | arrow::Result<int64_t> Tell() const override { |
| 236 | if (closed()) { |
no test coverage detected