Running ‘runit.R’ [1s/3s]
  Running ‘testthat.R’ [1s/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 = "fritools")
  + } else {
  +     require("fritools", 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 = "fritools")
  +     }
  + }
  
  Attaching package: 'fritools'
  
  The following object is masked from 'package:base':
  
      tapply
  
  > if (! dir.exists(unit_dir)) {
  +     stop("Can not find RUnit test directory ", unit_dir,
  +          ". Try to (re)install the package first.")
  + }
  > setup_file <- file.path(unit_dir, "setup.R")
  > if (file.exists(setup_file)) source(setup_file)
  > package_suite <- RUnit::defineTestSuite("fritools_unit_test",
  +                                         dirs = unit_dir,
  +                                         testFileRegexp = "^runit.*\\.[rR]",
  +                                         testFuncRegexp = "^test_+")
  > test_result <- RUnit::runTestSuite(package_suite)
  
  
  Executing test function test_is_false  ...  done successfully.
  
  
  
  Executing test function test_is_not_false  ...  done successfully.
  
  
  
  Executing test function test_is_null_or_true  ...  done successfully.
  
  
  
  Executing test function test_call_conditionally  ... Error in (function (x, lib_loc = NULL)  : 
    there is no package called 'not_there'
   done successfully.
  
  
  
  Executing test function test_compare_vectors  ...  done successfully.
  
  
  
  Executing test function test_find_files  ... Error in find_files(file_names = c(files[1:3], not_there), find_all = TRUE) : 
    File /home/hornik/tmp/scratch/RtmpT97dKh/file12b57fbd7766  not found.
  	File /home/hornik/tmp/scratch/RtmpT97dKh/file12b5192ae50a  not found.
  Error in find_files(file_names = replicate(2, tempfile())) : 
    No matching files found.
  In addition: Warning message:
  In find_files(file_names = replicate(2, tempfile())) :
    File /home/hornik/tmp/scratch/RtmpT97dKh/file12b582e8587  not found.
  	File /home/hornik/tmp/scratch/RtmpT97dKh/file12b5316022e1  not found.
  Error in find_files(path = temp_dir, recursive = FALSE) : 
    No matching files found.
   done successfully.
  
  
  
  Executing test function test_get_package_version  ... Error in get_package_version("no_package") : 
    there is no package called 'no_package'
   done successfully.
  
  
  
  Executing test function test_get_unique_string  ... Timing stopped at: 0.079 0.012 0.172
  Error in RUnit::checkIdentical(length(r), length(unique(r))) : FALSE 
   
   done successfully.
  
  
  
  Executing test function test_golden_ratio  ...  done successfully.
  
  
  
  Executing test function test_is_installed  ...  done successfully.
  
  
  
  Executing test function test_is_r_package_installed  ...  done successfully.
  
  
  
  Executing test function test_is_of_length_zero  ...  done successfully.
  
  
  
  Executing test function test_is_version_sufficient  ...  done successfully.
  
  
  
  Executing test function test_is_windows  ...  done successfully.
  
  
  
  Executing test function test_load_internal_functions  ...  done successfully.
  
  
  
  Executing test function test_default_package_name  ...  done successfully.
  
  
  
  Executing test function test_is_force  ...  done successfully.
  
  
  
  Executing test function test_options  ...  done successfully.
  
  
  
  Executing test function test_search_files  ...  done successfully.
  
  
  
  Executing test function test_split_code_file  ...  done successfully.
  
  
  
  Executing test function test_strip  ...  done successfully.
  
  
  
  Executing test function test_index_groups  ...  done successfully.
  
  
  
  Executing test function test_subset_sizes  ... Error in subset_sizes(n = 1, k = 6) : Got n < 2, can't determine subsets.
   done successfully.
  
  
  
  Executing test function test_official_example  ...  done successfully.
  
  
  
  Executing test function test_tapply  ...  done successfully.
  
  
  
  Executing test function test_is_running  ... These functions can't be tested, as the result differs ondifferent machines
  gimli2 unix
   done successfully.
  
  
  
  Executing test function test_run_r_test  ... Error in get_boolean_envvar("RUN_R_TESTS", stop_on_failure = stop_on_failure) : 
    Environment variable RUN_R_TESTS is not set.
  Error in get_boolean_envvar("RUN_R_TESTS", stop_on_failure = stop_on_failure) : 
    Environment variable RUN_R_TESTS is set to a value not interpretable as boolean.
   done successfully.
  
  
  
  Executing test function test_exception  ... Error in eval(expr, envir = parent.frame()) : Hello, error!
   done successfully.
  
  
  
  Executing test function test_touch  ...  done successfully.
  
  
  
  Executing test function test_weighted_variance  ...  done successfully.
  
  
  
  Executing test function test_weighted_variance_df  ... You forced the weights not to be counts, but they do not sum to 1!
  You forced the weights not to be counts, but they do not sum to 1!
  You forced the weights not to be counts, but they do not sum to 1!
  You forced the weights not to be counts, but they do not sum to 1!
   done successfully.
  
  
  
  Executing test function test_wipe_clean  ...  done successfully.
  
  > RUnit::printTextProtocol(test_result, showDetails = TRUE, fileName = "")
  RUNIT TEST PROTOCOL -- Sat May  1 14:20:28 2021 
  *********************************************** 
  Number of test functions: 32 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  fritools_unit_test - 32 test functions, 0 errors, 1 failure
  FAILURE in test_get_unique_string: Error in RUnit::checkIdentical(length(r), length(unique(r))) : FALSE 
   
  
  
  
  Details 
  *************************** 
  Test Suite: fritools_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^runit.*\.[rR] 
  Involved directory: 
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests 
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-boolean.R 
  test_is_false: (1 checks) ... OK (0 seconds)
  test_is_not_false: (3 checks) ... OK (0.04 seconds)
  test_is_null_or_true: (3 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-call.R 
  test_call_conditionally: (4 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-compare_vectors.R 
  test_compare_vectors: (2 checks) ... OK (0.06 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-find_files.R 
  test_find_files: (11 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-get_package_version.R 
  test_get_package_version: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-get_unique_string.R 
  test_get_unique_string: FAILURE !! (check number 1)
  Error in RUnit::checkIdentical(length(r), length(unique(r))) : FALSE 
   
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-golden_ratio.R 
  test_golden_ratio: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-installed.R 
  test_is_installed: (2 checks) ... OK (0.12 seconds)
  test_is_r_package_installed: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-is_of_length_zero.R 
  test_is_of_length_zero: (4 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-is_version_sufficient.R 
  test_is_version_sufficient: (3 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-is_windows.R 
  test_is_windows: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-load_internal_functions.R 
  test_load_internal_functions: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-options.R 
  test_default_package_name: (1 checks) ... OK (0 seconds)
  test_is_force: (3 checks) ... OK (0 seconds)
  test_options: (11 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-search_files.R 
  test_search_files: (5 checks) ... OK (0.05 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-split_code_file.R 
  test_split_code_file: (1 checks) ... OK (0.03 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-strip_off_attributes.R 
  test_strip: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-subsets.R 
  test_index_groups: (1 checks) ... OK (0 seconds)
  test_subset_sizes: (5 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-tapply.R 
  test_official_example: (1 checks) ... OK (0 seconds)
  test_tapply: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-test_helpers.R 
  test_is_running: (3 checks) ... OK (0 seconds)
  test_run_r_test: (15 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/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/fritools/runit_tests/runit-touch.R 
  test_touch: (2 checks) ... OK (2 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-weighted_variance.R 
  test_weighted_variance: (2 checks) ... OK (0 seconds)
  test_weighted_variance_df: (1 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-wipe_clean.R 
  test_wipe_clean: (3 checks) ... OK (0 seconds)
  > if (is_failure(test_result)) {
  +     RUnit::printTextProtocol(test_result, showDetails = TRUE)
  +     stop("RUnit failed.")
  + }
  RUNIT TEST PROTOCOL -- Sat May  1 14:20:28 2021 
  *********************************************** 
  Number of test functions: 32 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  fritools_unit_test - 32 test functions, 0 errors, 1 failure
  FAILURE in test_get_unique_string: Error in RUnit::checkIdentical(length(r), length(unique(r))) : FALSE 
   
  
  
  
  Details 
  *************************** 
  Test Suite: fritools_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^runit.*\.[rR] 
  Involved directory: 
  /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests 
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-boolean.R 
  test_is_false: (1 checks) ... OK (0 seconds)
  test_is_not_false: (3 checks) ... OK (0.04 seconds)
  test_is_null_or_true: (3 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-call.R 
  test_call_conditionally: (4 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-compare_vectors.R 
  test_compare_vectors: (2 checks) ... OK (0.06 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-find_files.R 
  test_find_files: (11 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-get_package_version.R 
  test_get_package_version: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-get_unique_string.R 
  test_get_unique_string: FAILURE !! (check number 1)
  Error in RUnit::checkIdentical(length(r), length(unique(r))) : FALSE 
   
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-golden_ratio.R 
  test_golden_ratio: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-installed.R 
  test_is_installed: (2 checks) ... OK (0.12 seconds)
  test_is_r_package_installed: (2 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-is_of_length_zero.R 
  test_is_of_length_zero: (4 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-is_version_sufficient.R 
  test_is_version_sufficient: (3 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-is_windows.R 
  test_is_windows: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-load_internal_functions.R 
  test_load_internal_functions: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-options.R 
  test_default_package_name: (1 checks) ... OK (0 seconds)
  test_is_force: (3 checks) ... OK (0 seconds)
  test_options: (11 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-search_files.R 
  test_search_files: (5 checks) ... OK (0.05 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-split_code_file.R 
  test_split_code_file: (1 checks) ... OK (0.03 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-strip_off_attributes.R 
  test_strip: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-subsets.R 
  test_index_groups: (1 checks) ... OK (0 seconds)
  test_subset_sizes: (5 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-tapply.R 
  test_official_example: (1 checks) ... OK (0 seconds)
  test_tapply: (1 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-test_helpers.R 
  test_is_running: (3 checks) ... OK (0 seconds)
  test_run_r_test: (15 checks) ... OK (0 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/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/fritools/runit_tests/runit-touch.R 
  test_touch: (2 checks) ... OK (2 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-weighted_variance.R 
  test_weighted_variance: (2 checks) ... OK (0 seconds)
  test_weighted_variance_df: (1 checks) ... OK (0.01 seconds)
  --------------------------- 
  Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/fritools/runit_tests/runit-wipe_clean.R 
  test_wipe_clean: (3 checks) ... OK (0 seconds)
  Error: RUnit failed.
  Execution halted