| 142 | } |
| 143 | |
| 144 | static SEXP Convert(const std::shared_ptr<ChunkedArray>& chunked_array, |
| 145 | bool use_threads) { |
| 146 | RTasks tasks(use_threads); |
| 147 | SEXP out = PROTECT(Converter::LazyConvert(chunked_array, tasks)); |
| 148 | StopIfNotOk(tasks.Finish()); |
| 149 | |
| 150 | UNPROTECT(1); |
| 151 | return out; |
| 152 | } |
| 153 | |
| 154 | static SEXP Convert(const std::shared_ptr<Array>& array) { |
| 155 | return Convert(std::make_shared<ChunkedArray>(array), false); |
no test coverage detected