- using R version 3.6.3 (2020-02-29)
- using platform: x86_64-w64-mingw32 (64-bit)
- using session charset: ISO8859-1
- checking for file 'uchardet/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'uchardet' version '1.1.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'uchardet' can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- loading checks for arch 'i386'
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- loading checks for arch 'x64'
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [2s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... NOTE
GNU make is a SystemRequirements.
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ...
- running examples for arch 'i386' ... [1s] OK
- running examples for arch 'x64' ... [1s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ...
- running tests for arch 'i386' ... [1s] ERROR
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.1s [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.1s [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
- running tests for arch 'x64' ... [1s] OK
Running 'tinytest.R' [1s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [2s] OK
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR, 1 NOTE