Showing 1 of 3 files from the diff.

@@ -99,6 +99,10 @@
Loading
99 99
slice_sample.tbl_lazy <- function(.data, ..., n, prop, weight_by = NULL, replace = FALSE) {
100 100
  size <- check_slice_size(n, prop)
101 101
  weight_by <- enquo(weight_by)
102 +
  if (size$type == "prop") {
103 +
    abort("Sampling by `prop` is not supported on database backends")
104 +
  }
105 +
102 106
  if (!quo_is_null(weight_by)) {
103 107
    abort("Weighted resampling is not supported on database backends")
104 108
  }
@@ -144,7 +148,7 @@
Loading
144 148
      abort("`n` must be a non-missing positive number.")
145 149
    }
146 150
147 -
    list(type = "n", n = n)
151 +
    list(type = "n", n = as.integer(n))
148 152
  } else if (!missing(prop) && missing(n)) {
149 153
    if (!is.numeric(prop) || length(prop) != 1) {
150 154
      abort("`prop` must be a single number")
Files Coverage
R 86.88%
Project Totals (72 files) 86.88%
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