inst/include/sfheaders/df/sf.hpp
changed.
Other files ignored by Codecov
tests/testthat/test-lists.R
has changed.
DESCRIPTION
has changed.
218 | 218 | const char *s = unlist[ i ]; |
|
219 | 219 | Rcpp::List lst = sf[ s ]; |
|
220 | 220 | to_unlist[ i ] = sfheaders::utils::unlist_list( lst ); |
|
221 | + | // iff total_size == sf.nrow(); |
|
222 | + | // then it's not a list column. |
|
221 | 223 | } |
|
222 | 224 | ||
223 | 225 | to_unlist.names() = unlist; |
230 | 232 | const char *s = unlist[ i ]; |
|
231 | 233 | SEXP unlisted_col = to_unlist[ i ]; |
|
232 | 234 | R_xlen_t n = sfheaders::utils::get_sexp_length( unlisted_col ); |
|
235 | + | if( n == sf.nrow() ) { |
|
236 | + | continue; // issue 76 |
|
237 | + | } |
|
233 | 238 | if( n != n_row ) { |
|
234 | 239 | Rcpp::stop("sfheaders - unlisted column doesn't have the correct number of rows"); |
|
235 | 240 | } |
Files | Coverage |
---|---|
R | 95.69% |
inst/include/sfheaders | 99.29% |
src | 96.74% |
Project Totals (74 files) | 99.06% |