Running ‘tinytest.R’
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............    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............    6 tests [0;32mOK[0m 
  Running test-detect-file.R............    6 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............   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 
  
  Running test-detect-raw.R.............    0 tests    
  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.............    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.............    8 tests [0;32mOK[0m 
  Running test-detect-raw.R.............  124 tests [0;31m3 fails[0m 
  
  Running test-detect-str.R.............    0 tests    
  Running test-detect-str.R.............    0 tests    
  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.............    6 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.............    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.............   10 tests [0;32mOK[0m 
  Running test-detect-str.R.............   10 tests [0;32mOK[0m 
  Running test-detect-str.R.............  109 tests [0;31m3 fails[0m 
  Error: ----- FAILED[data]: test-detect-file.R<28--28>
   call| expect_equivalent(res, ex_encs)
   diff| 3 string mismatches
  ----- FAILED[data]: test-detect-raw.R<20--22>
   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<20--22>
   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<20--22>
   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<27--30>
   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<27--30
  In addition: Warning messages:
  1: In detect_file_enc(tmp) :
    Can not handling file '/tmp/RtmpiQaWjW/file604e54e45ab3'.
  2: In detect_raw_enc(x) : Can not handling data.
  3: In detect_str_enc(x) : Can not handling string.
  Execution halted