Running 'tinytest.R' [1s]
Running the tests in 'tests/tinytest.R' failed.
Complete output:
  > if (requireNamespace("tinytest", quietly = TRUE)) {
  +   # set a seed to make the test deterministic
  +   set.seed(42)
  + 
  +   # run tests (package must be installed)
  +   tinytest::test_package("uchardet")
  + }
  
  Running test-detect-file.R............    0 tests    
  Running test-detect-file.R............    1 tests [0;32mOK[0m 
  Running test-detect-file.R............    2 tests [0;32mOK[0m 
  Running test-detect-file.R............    3 tests [0;32mOK[0m 
  Running test-detect-file.R............    4 tests [0;32mOK[0m 
  Running test-detect-file.R............    5 tests [0;32mOK[0m 
  Running test-detect-file.R............    6 tests [0;32mOK[0m 
  Running test-detect-file.R............    7 tests [0;32mOK[0m 
  Running test-detect-file.R............    8 tests [0;32mOK[0m 
  Running test-detect-file.R............    8 tests [0;32mOK[0m 
  Running test-detect-file.R............    8 tests [0;32mOK[0m 
  Running test-detect-file.R............    8 tests [0;32mOK[0m 
  Running test-detect-file.R............    9 tests [0;32mOK[0m 
  Running test-detect-file.R............    9 tests [0;32mOK[0m 
  Running test-detect-file.R............    9 tests [0;32mOK[0m 
  Running test-detect-file.R............    9 tests [0;32mOK[0m 
  Running test-detect-file.R............   10 tests [0;32mOK[0m 
  Running test-detect-file.R............   11 tests [0;32mOK[0m 
  Running test-detect-file.R............   12 tests [0;32mOK[0m 
  Running test-detect-file.R............   13 tests [0;31m1 fails[0m [0;34m0.2s[0m
  
  Running test-detect-raw.R.............    0 tests    
  Running test-detect-raw.R.............    1 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    2 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    3 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    4 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    5 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    6 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    7 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    8 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    9 tests [0;32mOK[0m 
  Running test-detect-raw.R.............    9 tests [0;32mOK[0m 
  Running test-detect-raw.R.............   10 tests [0;32mOK[0m 
  Running test-detect-raw.R.............   10 tests [0;32mOK[0m 
  Running test-detect-raw.R.............   11 tests [0;32mOK[0m 
  Running test-detect-raw.R.............   11 tests [0;32mOK[0m 
  Running test-detect-raw.R.............   12 tests [0;32mOK[0m 
  Running test-detect-raw.R.............   12 tests [0;32mOK[0m 
  Running test-detect-raw.R.............  128 tests [0;31m3 fails[0m [0;34m0.2s[0m
  
  Running test-detect-str.R.............    0 tests    
  Running test-detect-str.R.............    1 tests [0;32mOK[0m 
  Running test-detect-str.R.............    2 tests [0;32mOK[0m 
  Running test-detect-str.R.............    3 tests [0;32mOK[0m 
  Running test-detect-str.R.............    4 tests [0;32mOK[0m 
  Running test-detect-str.R.............    5 tests [0;32mOK[0m 
  Running test-detect-str.R.............    5 tests [0;32mOK[0m 
  Running test-detect-str.R.............    6 tests [0;32mOK[0m 
  Running test-detect-str.R.............    7 tests [0;32mOK[0m 
  Running test-detect-str.R.............    8 tests [0;32mOK[0m 
  Running test-detect-str.R.............    8 tests [0;32mOK[0m 
  Running test-detect-str.R.............    9 tests [0;32mOK[0m 
  Running test-detect-str.R.............    9 tests [0;32mOK[0m 
  Running test-detect-str.R.............   10 tests [0;32mOK[0m 
  Running test-detect-str.R.............   10 tests [0;32mOK[0m 
  Running test-detect-str.R.............   57 tests [0;31m2 fails[0m [0;34m0.2s[0m
  ----- FAILED[data]: test-detect-file.R<27--27>
   call| expect_equivalent(res, ex_encs)
   diff| 3 string mismatches
  ----- FAILED[data]: test-detect-raw.R<27--29>
   call| for (i in seq_along(ex_files)) {
   call| expect_equal(detect_raw_enc(read_bin(ex_files[i])), ex_encs[i])
   call| }
   diff| Expected 'ISO-8859-1', got 'WINDOWS-1252'
  ----- FAILED[data]: test-detect-raw.R<27--29>
   call| for (i in seq_along(ex_files)) {
   call| expect_equal(detect_raw_enc(read_bin(ex_files[i])), ex_encs[i])
   call| }
   diff| Expected 'ISO-8859-1', got 'WINDOWS-1252'
  ----- FAILED[data]: test-detect-raw.R<27--29>
   call| for (i in seq_along(ex_files)) {
   call| expect_equal(detect_raw_enc(read_bin(ex_files[i])), ex_encs[i])
   call| }
   diff| Expected 'TIS-620', got 'ISO-8859-11'
  ----- FAILED[data]: test-detect-str.R<25--28>
   call| expect_equal(current = detect_str_enc(read_utf8(ex_files[i])), 
   call| target = ex_encs[i])
   diff| Expected 'ISO-8859-1', got 'WINDOWS-1252'
  ----- FAILED[data]: test-detect-str.R<25--28>
   call| expect_equal(current = detect_str_enc(read_utf8(ex_files[i])), 
   call| target = ex_encs[i])
   diff| Expected 'ISO-8859-1', got 'WINDOWS-1252'
  Error: 6 out of 198 tests failed
  In addition: Warning messages:
  1: In detect_file_enc("") : Can not open file ''.
  2: In detect_file_enc("no-exists") : Can not open file 'no-exists'.
  Execution halted