Running ‘testthat.R’ [18s/18s]
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")
  1. Failure: row_number(), ntile(), min_rank(), percent_rank(), dense_rank(), and cume_dist() work (@test-hybrid.R#413) 
  with_hybrid_(expr, ...) not identical to `expected`.
  Component 1: Mean relative difference: 0.4285714
  
  
  2. 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.
  10/10 mismatches (average diff: 4)
  [1] 3 - 10 == -7
  [2] 7 -  9 == -2
  [3] 2 -  8 == -6
  [4] 5 -  7 == -2
  [5] 8 -  6 ==  2
  [6] 9 -  5 ==  4
  [7] 1 -  4 == -3
  [8] 6 -  3 ==  3
  [9] 4 -  2 ==  2
  ...
  
  
  3. 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).
  8/10 mismatches (average diff: 2.5)
  [1]  2 - 5 == -3
  [3]  1 - 3 == -2
  [4]  3 - 2 ==  1
  [5]  5 - 1 ==  4
  [6]  3 - 5 == -2
  [7]  1 - 4 == -3
  [8]  4 - 3 ==  1
  [10] 5 - 1 ==  4
  
  
  4. 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
  
  
  5. 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.
  
  
  6. 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).
  4/4 mismatches (average diff: 1.75)
  [1] 4 - 2 == 2
  [2] 5 - 4 == 1
  [3] 6 - 3 == 3
  [4] 2 - 1 == 1
  
  
  7. 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.
  
  
  8. 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).
  7/8 mismatches (average diff: 2.14)
  [1] 4 - 2 == 2
  [2] 5 - 4 == 1
  [3] 6 - 3 == 3
  [4] 2 - 1 == 1
  [5] 6 - 2 == 4
  [6] 5 - 4 == 1
  [8] 4 - 1 == 3
  
  
  testthat results ================================================================
  OK: 2841 SKIPPED: 3 FAILED: 8
  1. Failure: row_number(), ntile(), min_rank(), percent_rank(), dense_rank(), and cume_dist() work (@test-hybrid.R#413) 
  2. Failure: desc is correctly handled by window functions (@test-mutate-windowed.R#9) 
  3. Failure: desc is correctly handled by window functions (@test-mutate-windowed.R#10) 
  4. Failure: row_number gives correct results (@test-mutate-windowed.R#17) 
  5. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#113) 
  6. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#120) 
  7. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#141) 
  8. Failure: rank functions deal correctly with NA (#774) (@test-mutate-windowed.R#148) 
  
  Error: testthat unit tests failed
  Execution halted