* using log directory 'd:/Rcompile/CRANpkg/local/4.0/prof.tree.Rcheck' * using R version 4.0.5 (2021-03-31) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'prof.tree/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'prof.tree' version '0.1.0' * 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 'prof.tree' 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 ... [3s] 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 ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [4s] ERROR Running 'testthat.R' [4s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(prof.tree) > > test_check("prof.tree") levelName real percent env 1 * 0.170 100.0 % 2 ¦--`summary` 0.157 92.4 % base 3 ¦ ¦--`glm` 0.128 75.3 % stats 4 ¦ ¦ °--... 8 nodes w/ 143 sub NA 5 ¦ ¦--`lazyLoadDBfetch` 0.002 1.2 % base 6 ¦ °--`summary.glm` 0.025 14.7 % stats 7 ¦ °--... 7 nodes w/ 13 sub NA 8 °--`data.frame` 0.013 7.6 % base 9 ¦--`as.data.frame` 0.009 5.3 % base 10 ¦ °--... 1 nodes w/ 15 sub NA 11 ¦--`unlist` 0.001 0.6 % base 12 ¦--`make.names` 0.001 0.6 % base 13 °--`as.list` 0.001 0.6 % base [ FAIL 1 | WARN 0 | SKIP 0 | PASS 27 ] == Failed tests ================================================================ -- Error (test-print.R:11:5): Print contains ----------------------------------- Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1", x, perl = TRUE)`: input string 1 is invalid UTF-8 Backtrace: x 1. \-testthat::expect_output(print(tree), "levelName") at test-print.R:11:4 2. \-testthat::expect_match(...) 3. \-testthat:::expect_match_(...) 4. +-base::paste0(...) 5. \-testthat escape(encodeString(act$val)) 6. \-base::gsub(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 27 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR