Running 'testthat.R' [5s/7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(chunked)
  Loading required package: 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("chunked")
  -- 1. Failure: write_csv_chunkwise works (@test-write.R#10)  -------------------
  `iris2` not equal to `iris`.
  Component "Species": Modes: character, numeric
  Component "Species": Attributes: < target is NULL, current is list >
  Component "Species": target is character, current is factor
  
  -- 2. Failure: write_csv2_chunkwise works (@test-write.R#17)  ------------------
  `iris2` not equal to `iris`.
  Component "Species": Modes: character, numeric
  Component "Species": Attributes: < target is NULL, current is list >
  Component "Species": target is character, current is factor
  
  -- 3. Failure: write_csv2_chunkwise works (@test-write.R#21)  ------------------
  `iris2` not equal to `iris`.
  Component "Species": Modes: character, numeric
  Component "Species": Attributes: < target is NULL, current is list >
  Component "Species": target is character, current is factor
  
  -- 4. Failure: write_chunkwise to db works (@test-write.R#31)  -----------------
  `iris3` not equal to `iris`.
  Component "Species": Modes: character, numeric
  Component "Species": Attributes: < target is NULL, current is list >
  Component "Species": target is character, current is factor
  
  == testthat results  ===========================================================
  [ OK: 36 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: write_csv_chunkwise works (@test-write.R#10) 
  2. Failure: write_csv2_chunkwise works (@test-write.R#17) 
  3. Failure: write_csv2_chunkwise works (@test-write.R#21) 
  4. Failure: write_chunkwise to db works (@test-write.R#31) 
  
  Error: testthat unit tests failed
  Execution halted
  Warning message:
  In for (handler in handlers) tryCatch(eval(handler$expr, handler$envir),  :
    closing unused connection 4 (/tmp/RtmpP9qOJE/file3fd939255ee1)