CRAN Package Check Results for Package cleanr

Last updated on 2024-06-13 06:57:57 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4.0 2.49 46.18 48.67 OK
r-devel-linux-x86_64-debian-gcc 1.4.0 2.14 30.11 32.25 ERROR
r-devel-linux-x86_64-fedora-clang 1.4.0 61.89 OK
r-devel-linux-x86_64-fedora-gcc 1.4.0 69.91 OK
r-devel-windows-x86_64 1.4.0 4.00 69.00 73.00 OK
r-patched-linux-x86_64 1.4.0 2.61 43.24 45.85 OK
r-release-linux-x86_64 1.4.0 2.71 44.10 46.81 OK
r-release-macos-arm64 1.4.0 27.00 OK
r-release-macos-x86_64 1.4.0 41.00 OK
r-release-windows-x86_64 1.4.0 5.00 70.00 75.00 OK
r-oldrel-macos-arm64 1.4.0 28.00 OK
r-oldrel-macos-x86_64 1.4.0 68.00 OK
r-oldrel-windows-x86_64 1.4.0 5.00 72.00 77.00 OK

Check Details

Version: 1.4.0
Check: package dependencies
Result: NOTE Packages suggested but not available for checking: 'devtools', 'testthat', 'usethis' Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.4.0
Check: examples
Result: ERROR Running examples in ‘cleanr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: check_package > ### Title: Check a Package > ### Aliases: check_package > > ### ** Examples > > # create a fake package first: > package_path <- file.path(tempdir(), "fake") > usethis::create_package(package_path, fields = NULL, + rstudio = FALSE, open = FALSE) Error in loadNamespace(x) : there is no package called ‘usethis’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.4.0
Check: tests
Result: ERROR Running ‘runit.R’ [0s/1s] Running ‘testthat.R’ [0s/1s] Running the tests in ‘tests/runit.R’ failed. Complete output: > #!/usr/bin/Rscript --vanilla > is_failure <- function(result) { + res <- RUnit::getErrors(result) + names(res) <- tolower(names(res)) # soothe lintr + sum_of_exceptions <- res[["nerr"]] + res[["nfail"]] + fail <- as.logical(sum_of_exceptions) + return(fail) + } > > if (interactive()) { + pkgload::load_all(path = ".") # needed to use pkgload's shim version of + # base's system.file + unit_dir <- system.file("inst", "runit_tests", package = "cleanr") + } else { + require("cleanr", quietly = TRUE, character.only = TRUE) || + pkgload::load_all(path = ".") # needed to use pkgload's shim version of + r_call <- commandArgs(trailingOnly = FALSE) + if (any(grepl("--file", r_call))) { + unit_dir <- file.path("inst", "runit_tests") + } else { + unit_dir <- system.file("runit_tests", package = "cleanr") + } + } > if (! dir.exists(unit_dir)) { + stop("Can not find RUnit test directory ", unit_dir, + ". Try to (re)install the package first.") + } > package_suite <- RUnit::defineTestSuite("cleanr_unit_test", + dirs = unit_dir, + testFileRegexp = "^.*\\.[rR]", + testFuncRegexp = "^test_+") > test_result <- RUnit::runTestSuite(package_suite) Executing test function test_check_nesting_depth ... Error in cleanr::check_nesting_depth(failing_function) : found nesting depth 4, max_nesting_depth was 3 In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry done successfully. Executing test function test_check_return ... Error in cleanr::check_return(failing_function) : found no return() statement at all. In addition: Warning message: In cleanr::check_return(failing_function) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. done successfully. Executing test function test_file_length ... Error in cleanr::check_file_length(function_file, max_file_length = 9) : /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: 24 lines in file. done successfully. Executing test function test_file_width ... Error in cleanr::check_file_width(function_file, max_file_width = 9) : /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 1 counts 48 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 2 counts 87 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 3 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 4 counts 24 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 5 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 6 counts 32 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 7 counts 36 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 8 counts 45 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 9 counts 17 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 10 counts 13 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 15 counts 48 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 16 counts 16 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 17 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 18 counts 24 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 19 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 20 counts 37 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 23 counts 16 characters. done successfully. Executing test function test_line_width ... Error in cleanr::check_line_width(failing_function, max_line_width = 9) : line 1: found width 16 max_line_width was 9 line 2: found width 24 max_line_width was 9 line 3: found width 28 max_line_width was 9 line 4: found width 32 max_line_width was 9 line 5: found width 36 max_line_width was 9 line 6: found width 43 max_line_width was 9 line 7: found width 17 max_line_width was 9 line 8: found width 13 max_line_width was 9 done successfully. Executing test function test_num_arguments ... Error in cleanr::check_num_arguments(failing_function, max_num_arguments = 1) : found 2 arguments, max_num_arguments was 1 done successfully. Executing test function test_num_lines ... Error in cleanr::check_num_lines(failing_function, max_lines = 9) : found 10 lines, max_lines was 9 done successfully. Executing test function test_num_lines_of_code ... Error in cleanr::check_num_lines_of_code(failing_function, max_lines = 9) : found 10 lines of code, max_lines_of_code was 9 done successfully. Executing test function test_get_function_body ... [1] "print(3)" done successfully. Executing test function test_options ... done successfully. Executing test function test_s4_dircetory ... Error in methods::setMethod(f = "auc", methods::signature(object = "bincap"), : no existing definition for function 'auc'. Probably due to failed S4 method loading. In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry 3: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 4: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry 5: In set_cleanr_options(max_lines_of_code = 40, overwrite = TRUE) : maximum number of lines was less than maximum number of lines of code, resetting the former to the latter. 6: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 7: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry 8: In getPackageName(where) : Created a package name, '2024-06-12 14:39:17.519109', when none found 9: In getPackageName(where) : Created a package name, '2024-06-12 14:39:17.554437', when none found done successfully. Executing test function test_s4_known_generic ... done successfully. Executing test function test_s4_no_generic ... done successfully. Executing test function test_s4_package ... Timing stopped at: 0.001 0 0.001 Error in loadNamespace(x) : there is no package called 'usethis' done successfully. Executing test function test_exception ... Error in eval(expr, envir = parent.frame()) : Hello, error! In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry done successfully. Executing test function test_is_not_false ... done successfully. Executing test function test_check_directory ... Error in check_directory(system.file("runit_tests", "source", "R", package = "cleanr")) : /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 2 counts 87 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R failing_function found nesting depth 4, max_nesting_depth was 3 failing_function line 1: found width 87 max_line_width was 80 failing_function found no return() statement at all. In addition: Warning messages: 1: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 2: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry 3: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: Marsaglia-Multicarry has poor statistical properties 4: In RNGkind(kind = testSuite$rngKind, normal.kind = testSuite$rngNormalKind) : RNGkind: severe deviations from normality for Kinderman-Ramage + Marsaglia-Multicarry 5: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. 6: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. done successfully. Executing test function test_check_file ... Error in check_file(function_file) : /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 2 counts 87 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R failing_function found nesting depth 4, max_nesting_depth was 3 failing_function line 1: found width 87 max_line_width was 80 failing_function found no return() statement at all. In addition: Warning messages: 1: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. 2: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. Error in check_file(function_file, silly_arguemnt = "FIFI") : got unkown argument(s): silly_arguemnt done successfully. Executing test function test_check_file_layout ... Error in check_file_layout(function_file, max_file_width = 10) : /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 1 counts 48 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 2 counts 87 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 3 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 4 counts 24 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 5 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 6 counts 32 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 7 counts 36 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 8 counts 45 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 9 counts 17 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 10 counts 13 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 15 counts 48 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 16 counts 16 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 17 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 18 counts 24 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 19 counts 28 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 20 counts 37 characters. /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R: line 23 counts 16 characters. done successfully. Executing test function test_check_function_layout ... Error in check_function_layout(failing_function, max_line_width = 10) : failing_function found nesting depth 4, max_nesting_depth was 3 failing_function line 1: found width 16 max_line_width was 10 line 2: found width 24 max_line_width was 10 line 3: found width 28 max_line_width was 10 line 4: found width 32 max_line_width was 10 line 5: found width 36 max_line_width was 10 line 6: found width 43 max_line_width was 10 line 7: found width 17 max_line_width was 10 line 8: found width 13 max_line_width was 10 failing_function found no return() statement at all. In addition: Warning messages: 1: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. 2: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. done successfully. Executing test function test_check_functions_in_file ... Error in check_functions_in_file(function_file) : /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/source/R/functions.R failing_function found nesting depth 4, max_nesting_depth was 3 failing_function line 1: found width 87 max_line_width was 80 failing_function found no return() statement at all. In addition: Warning messages: 1: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. 2: In check_return(object, check_return = check_return) : Just checking for a line starting with a return statement. This is no check for all return paths being explicit. done successfully. > RUnit::printTextProtocol(test_result, showDetails = TRUE, fileName = "") RUNIT TEST PROTOCOL -- Wed Jun 12 14:39:17 2024 *********************************************** Number of test functions: 21 Number of errors: 1 Number of failures: 0 1 Test Suite : cleanr_unit_test - 21 test functions, 1 error, 0 failures ERROR in test_s4_package: Error in loadNamespace(x) : there is no package called 'usethis' Details *************************** Test Suite: cleanr_unit_test Test function regexp: ^test_+ Test file regexp: ^.*\.[rR] Involved directory: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_checks.R test_check_nesting_depth: (2 checks) ... OK (0.01 seconds) test_check_return: (2 checks) ... OK (0 seconds) test_file_length: (2 checks) ... OK (0 seconds) test_file_width: (2 checks) ... OK (0 seconds) test_line_width: (2 checks) ... OK (0 seconds) test_num_arguments: (2 checks) ... OK (0 seconds) test_num_lines: (2 checks) ... OK (0 seconds) test_num_lines_of_code: (2 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_internals.R test_get_function_body: (1 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_options.R test_options: (8 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_s4.R test_s4_dircetory: (1 checks) ... OK (0.06 seconds) test_s4_known_generic: (1 checks) ... OK (0.01 seconds) test_s4_no_generic: (1 checks) ... OK (0 seconds) test_s4_package: ERROR !! Error in loadNamespace(x) : there is no package called 'usethis' --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_throw.R test_exception: (1 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_utils.R test_is_not_false: (10 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_wrappers.R test_check_directory: (2 checks) ... OK (0.02 seconds) test_check_file: (3 checks) ... OK (0.02 seconds) test_check_file_layout: (2 checks) ... OK (0 seconds) test_check_function_layout: (2 checks) ... OK (0.01 seconds) test_check_functions_in_file: (2 checks) ... OK (0.02 seconds) > if (is_failure(test_result)) { + RUnit::printTextProtocol(test_result, showDetails = TRUE) + stop("RUnit failed.") + } RUNIT TEST PROTOCOL -- Wed Jun 12 14:39:17 2024 *********************************************** Number of test functions: 21 Number of errors: 1 Number of failures: 0 1 Test Suite : cleanr_unit_test - 21 test functions, 1 error, 0 failures ERROR in test_s4_package: Error in loadNamespace(x) : there is no package called 'usethis' Details *************************** Test Suite: cleanr_unit_test Test function regexp: ^test_+ Test file regexp: ^.*\.[rR] Involved directory: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_checks.R test_check_nesting_depth: (2 checks) ... OK (0.01 seconds) test_check_return: (2 checks) ... OK (0 seconds) test_file_length: (2 checks) ... OK (0 seconds) test_file_width: (2 checks) ... OK (0 seconds) test_line_width: (2 checks) ... OK (0 seconds) test_num_arguments: (2 checks) ... OK (0 seconds) test_num_lines: (2 checks) ... OK (0 seconds) test_num_lines_of_code: (2 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_internals.R test_get_function_body: (1 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_options.R test_options: (8 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_s4.R test_s4_dircetory: (1 checks) ... OK (0.06 seconds) test_s4_known_generic: (1 checks) ... OK (0.01 seconds) test_s4_no_generic: (1 checks) ... OK (0 seconds) test_s4_package: ERROR !! Error in loadNamespace(x) : there is no package called 'usethis' --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_throw.R test_exception: (1 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_utils.R test_is_not_false: (10 checks) ... OK (0 seconds) --------------------------- Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/cleanr/runit_tests/runit_wrappers.R test_check_directory: (2 checks) ... OK (0.02 seconds) test_check_file: (3 checks) ... OK (0.02 seconds) test_check_file_layout: (2 checks) ... OK (0 seconds) test_check_function_layout: (2 checks) ... OK (0.01 seconds) test_check_functions_in_file: (2 checks) ... OK (0.02 seconds) Error: RUnit failed. Execution halted Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) Error in library(testthat) : there is no package called 'testthat' Execution halted Flavor: r-devel-linux-x86_64-debian-gcc