* using log directory 'd:/Rcompile/CRANpkg/local/3.3/xmlparsedata.Rcheck' * using R version 3.3.3 (2017-03-06) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'xmlparsedata/DESCRIPTION' ... OK * this is package 'xmlparsedata' version '1.0.1' * 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 'xmlparsedata' can be installed ... OK * checking installed package size ... OK * checking package 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 * 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 ... 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 examples ... [0s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [2s] ERROR Running 'testthat.R' [1s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(xmlparsedata) > > if (requireNamespace("xml2", quietly = TRUE)) { + test_check("xmlparsedata") + } -- 1. Failure: UTF-8 is OK (@test.R#66) --------------------------------------- substring(src, col1, col2) not equal to iconv(src, to = "UTF-8"). 1/1 mismatches x[1]: "# " y[1]: "# ç\u008f¾è¡Œã\u0081®å­¦æ ¡æ–‡æ³•ã\u0081§ã\u0081¯ã€\u0081英語ã\u0081«ã\ y[1]: u0081‚るよã\u0081†ã\u0081ªã€Œç›®çš„語ã€\u008d「補語ã€\u008d" -- 2. Failure: UTF-8 is OK (@test.R#78) --------------------------------------- length(op) not equal to 1. 1/1 mismatches [1] 0 - 1 == -1 == testthat results =========================================================== OK: 14 SKIPPED: 0 FAILED: 2 1. Failure: UTF-8 is OK (@test.R#66) 2. Failure: UTF-8 is OK (@test.R#78) Error: testthat unit tests failed Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR