r-lib / vctrs
Showing 1 of 2 files from the diff.

@@ -299,10 +299,11 @@
Loading
299 299
// -----------------------------------------------------------------------------
300 300
301 301
/*
302 -
 * Returns a list of size two.
302 +
 * Returns a list of size three.
303 303
 * - The first element of the list contains the ordering as an integer vector.
304 304
 * - The second element of the list contains the group sizes as an integer
305 305
 *   vector.
306 +
 * - The third element of the list contains the max group size as an integer.
306 307
 */
307 308
// [[ include("order-radix.h") ]]
308 309
SEXP vec_order_info(SEXP x,
@@ -456,7 +457,7 @@
Loading
456 457
    p_truelength_info
457 458
  );
458 459
459 -
  SEXP out = PROTECT_N(r_alloc_list(2), &n_prot);
460 +
  SEXP out = PROTECT_N(r_alloc_list(3), &n_prot);
460 461
  r_list_poke(out, 0, p_order->data);
461 462
462 463
  if (group_sizes) {
@@ -464,6 +465,7 @@
Loading
464 465
    SEXP sizes = p_group_info->data;
465 466
    sizes = r_int_resize(sizes, p_group_info->n_groups);
466 467
    r_list_poke(out, 1, sizes);
468 +
    r_list_poke(out, 2, r_int((int) p_group_info->max_group_size));
467 469
  }
468 470
469 471
  UNPROTECT(n_prot);
Files Coverage
R 87.13%
src 83.22%
Project Totals (184 files) 83.93%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading