Showing 1 of 3 files from the diff.
Newly tracked file
R/pivot_longer.R changed.
Other files ignored by Codecov

@@ -43,26 +43,28 @@
Loading
43 43
    cols <- characterize(substitute(cols))
44 44
  }
45 45
46 -
  if (cols[1] == "-") {
46 +
  names <- colnames(dt_)
47 47
48 +
  if (cols[1] == "-") {
48 49
    # If cols is a single "unselected" column
49 50
    # Ex: cols = -z
50 51
    drop_cols <- cols[2]
51 -
    cols <- colnames(dt_)[!colnames(dt_) %in% drop_cols]
52 +
    cols <- names[!names %in% drop_cols]
52 53
53 54
  } else if (all(grepl("-", cols))) {
54 -
55 55
    # If cols is a vector of columns to drop
56 56
    # Ex: cols = c(-y, -z)
57 57
    drop_cols <- gsub("-", "", cols)
58 -
    cols <- colnames(dt_)[!colnames(dt_) %in% drop_cols]
58 +
    cols <- names[!names %in% drop_cols]
59 +
    if (length(cols) == 0)
60 +
      warning("No columns remaining after removing", paste(drop_cols, collapse = ", "))
59 61
60 62
  } else if (any(grepl("-", cols)) && any(!grepl("-", cols))) {
61 63
    # Ex: cols = c(x, -z)
62 64
    stop("cols must only contain columns to drop OR columns to add, not both")
63 65
  }
64 66
65 -
  id_vars <- colnames(dt_)[!colnames(dt_) %in% cols]
67 +
  id_vars <- names[!names %in% cols]
66 68
67 69
  melt(data = dt_,
68 70
       id.vars = id_vars,
Files Coverage
R 93.44%
src/fill.cpp 97.67%
Project Totals (12 files) 94.80%
Untitled
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
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