| 107 | } |
| 108 | |
| 109 | static SEXP Convert(const std::shared_ptr<ChunkedArray>& chunked_array, |
| 110 | bool use_threads) { |
| 111 | RTasks tasks(use_threads); |
| 112 | SEXP out = PROTECT(Converter::LazyConvert(chunked_array, tasks)); |
| 113 | StopIfNotOk(tasks.Finish()); |
| 114 | |
| 115 | UNPROTECT(1); |
| 116 | return out; |
| 117 | } |
| 118 | |
| 119 | static SEXP Convert(const std::shared_ptr<Array>& array) { |
| 120 | return Convert(std::make_shared<ChunkedArray>(array), false); |
no test coverage detected