tidyverts / tsibble
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.

@@ -164,11 +164,13 @@
Loading
164 164
    } else if (is_false(.full)) {
165 165
      sum_data <- summarise(keyed_tbl,
166 166
        !!idx_chr := list2(!!idx_chr := seq_generator(!!idx, int)))
167 -
    } else if (.full == expr("start()")) {
167 +
    } else if (call_name(.full) == "start") {
168 +
      abort_if_args_present(.full)
168 169
      start <- min(keyed_tbl[[idx_chr]])
169 170
      sum_data <- summarise(keyed_tbl,
170 171
        !!idx_chr := list2(!!idx_chr := seq_generator(c(start, max(!!idx)), int)))
171 -
    } else if (.full == expr("end()")) {
172 +
    } else if (call_name(.full) == "end") {
173 +
      abort_if_args_present(.full)
172 174
      end <- max(keyed_tbl[[idx_chr]])
173 175
      sum_data <- summarise(keyed_tbl,
174 176
        !!idx_chr := list2(!!idx_chr := seq_generator(c(min(!!idx), end), int)))
@@ -279,12 +281,14 @@
Loading
279 281
      res <- summarise(grped_tbl,
280 282
        !!.name := (length(seq_generator(!!idx, int)) - length(!!idx)) > 0
281 283
      )
282 -
    } else if (.full == sym("start()")) {
284 +
    } else if (call_name(.full) == "start") {
285 +
      abort_if_args_present(.full)
283 286
      start <- min(.data[[idx_chr]])
284 287
      res <- summarise(grped_tbl,
285 288
        !!.name := (length(seq_generator(c(start, max(!!idx)), int)) - length(!!idx)) > 0
286 289
      )
287 -
    } else if (.full == sym("end()")) {
290 +
    } else if (call_name(.full) == "end") {
291 +
      abort_if_args_present(.full)
288 292
      end <- max(.data[[idx_chr]])
289 293
      res <- summarise(grped_tbl,
290 294
        !!.name := (length(seq_generator(c(min(!!idx), end), int)) - length(!!idx)) > 0
@@ -376,3 +380,9 @@
Loading
376 380
abort_invalid_full_arg <- function() {
377 381
  abort("`.full` only accepts `TRUE`, `FALSE`, `start()`, or `end()`.")
378 382
}
383 +
384 +
abort_if_args_present <- function(.full) {
385 +
  if (!has_length(call_args(.full), 0)) {
386 +
    abort("`.full` expects `start()`/`end()` with no arguments.")
387 +
  }
388 +
}
Files Coverage
R 87.84%
Project Totals (24 files) 87.84%
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