Running ‘testthat.R’ [18s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("dplyr")
  Auto-disconnecting SQLiteConnection
  1. Failure: row_number(), ntile(), min_rank(), percent_rank(), dense_rank(), and cume_dist() work (@test-hybrid.R#419) 
  with_hybrid_(expr, ...) not identical to `expected`.
  Component 1: Mean relative difference: 0.6666667
  
  
  2. Failure: window handlers supports quosured symbols (@test-hybrid.R#837) -----
  pull(mutate(mtcars, ntile(!(!quo(disp)), 2))) not identical to dplyr::ntile(mtcars$disp, 2).
  22/32 mismatches (average diff: 1)
  [1]  2 - 1 ==  1
  [2]  2 - 1 ==  1
  [3]  2 - 1 ==  1
  [5]  1 - 2 == -1
  [6]  1 - 2 == -1
  [9]  2 - 1 ==  1
  [12] 1 - 2 == -1
  [13] 1 - 2 == -1
  [14] 1 - 2 == -1
  ...
  
  
  3. Failure: desc is correctly handled by window functions (@test-mutate-windowed.R#9) 
  mutate(df, rank = row_number(desc(x)))$rank not equal to 10:1.
  9/10 mismatches (average diff: 3.33)
  [2]  6 - 9 == -3
  [3]  2 - 8 == -6
  [4]  4 - 7 == -3
  [5]  8 - 6 ==  2
  [6]  7 - 5 ==  2
  [7]  1 - 4 == -3
  [8]  5 - 3 ==  2
  [9]  3 - 2 ==  1
  [10] 9 - 1 ==  8
  
  
  4. Failure: desc is correctly handled by window functions (@test-mutate-windowed.R#10) 
  mutate(group_by(df, g), rank = row_number(desc(x)))$rank not equal to rep(5:1, 2).
  7/10 mismatches (average diff: 2.29)
  [2]  3 - 4 == -1
  [3]  1 - 3 == -2
  [5]  4 - 1 ==  3
  [6]  3 - 5 == -2
  [7]  1 - 4 == -3
  [8]  4 - 3 ==  1
  [10] 5 - 1 ==  4
  
  
  5. Failure: row_number gives correct results (@test-mutate-windowed.R#17) ------
  res$var not equal to c(2, 3, 4, 5, 1, 5, 4, 1, 2, 3).
  9/10 mismatches (average diff: 1.56)
  [1]  3 - 2 ==  1
  [2]  4 - 3 ==  1
  [3]  1 - 4 == -3
  [5]  2 - 1 ==  1
  [6]  3 - 5 == -2
  [7]  5 - 4 ==  1
  [8]  4 - 1 ==  3
  [9]  1 - 2 == -1
  [10] 2 - 3 == -1
  
  
  6. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#112) 
  all(is.na(res$ntile[c(3, 6)])) isn't true.
  
  
  7. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#113) 
  all(is.na(res$row_number[c(3, 6)])) isn't true.
  
  
  8. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#120) 
  res$row_number[c(1, 2, 4, 5)] not equal to c(2L, 4L, 3L, 1L).
  3/4 mismatches (average diff: 2)
  [1] 4 - 2 == 2
  [2] 5 - 4 == 1
  [3] 6 - 3 == 3
  
  
  9. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#140) 
  all(is.na(res$ntile[c(3, 6, 9, 12)])) isn't true.
  
  
  10. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#141) 
  all(is.na(res$row_number[c(3, 6, 9, 12)])) isn't true.
  
  
  11. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#147) 
  res$ntile[c(1, 2, 4, 5, 7, 8, 10, 11)] not equal to rep(c(1L, 2L, 2L, 1L), 2).
  1/8 mismatches
  [6] 1 - 2 == -1
  
  
  12. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#148) 
  res$row_number[c(1, 2, 4, 5, 7, 8, 10, 11)] not equal to rep(c(2L, 4L, 3L, 1L), 2).
  6/8 mismatches (average diff: 2.17)
  [1] 4 - 2 == 2
  [2] 5 - 4 == 1
  [3] 6 - 3 == 3
  [5] 6 - 2 == 4
  [7] 5 - 3 == 2
  [8] 2 - 1 == 1
  
  
  testthat results ================================================================
  OK: 2880 SKIPPED: 3 FAILED: 12
  1. Failure: row_number(), ntile(), min_rank(), percent_rank(), dense_rank(), and cume_dist() work (@test-hybrid.R#419) 
  2. Failure: window handlers supports quosured symbols (@test-hybrid.R#837) 
  3. Failure: desc is correctly handled by window functions (@test-mutate-windowed.R#9) 
  4. Failure: desc is correctly handled by window functions (@test-mutate-windowed.R#10) 
  5. Failure: row_number gives correct results (@test-mutate-windowed.R#17) 
  6. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#112) 
  7. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#113) 
  8. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#120) 
  9. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#140) 
  1. ...
  
  Error: testthat unit tests failed
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted