Running ‘runit.R’ [11s/12s]
  Running ‘testthat.R’
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 = "document")
  + } else {
  +     require("document", 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 = "document")
  +     }
  + }
  > 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("document_unit_test",
  +                                         dirs = unit_dir,
  +                                         testFileRegexp = "^.*\\.[rR]",
  +                                         testFuncRegexp = "^test_+")
  > test_result <- RUnit::runTestSuite(package_suite)
  
  
  Executing test function test_html  ... First time using roxygen2. Upgrading automatically...
  Updating roxygen version in /tmp/Rtmp9bB3Tc/working_dir/RtmpxI1O98/document_160e2f4e9701a5/simple/DESCRIPTION
  ℹ Loading simple
  Timing stopped at: 8.496 1.961 11.6
  Error in RUnit::checkTrue(sum(reference %in% current)/length(current) >=  : 
    Test not TRUE
  
  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: roxygen2 requires Encoding: UTF-8 
   done successfully.
  
  > RUnit::printTextProtocol(test_result, showDetails = TRUE, fileName = "")
  RUNIT TEST PROTOCOL -- Mon Mar 28 14:21:53 2022 
  *********************************************** 
  Number of test functions: 1 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  document_unit_test - 1 test function, 0 errors, 1 failure
  FAILURE in test_html: Error in RUnit::checkTrue(sum(reference %in% current)/length(current) >=  : 
    Test not TRUE
  
  
  
  
  Details 
  *************************** 
  Test Suite: document_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^.*\.[rR] 
  Involved directory: 
  /data/gannet/ripley/R/packages/tests-clang/document.Rcheck/document/runit_tests 
  --------------------------- 
  Test file: /data/gannet/ripley/R/packages/tests-clang/document.Rcheck/document/runit_tests/expected_files.r 
  test_html: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(sum(reference %in% current)/length(current) >=  : 
    Test not TRUE
  
  > if (is_failure(test_result)) {
  +     RUnit::printTextProtocol(test_result, showDetails = TRUE)
  +     stop("RUnit failed.")
  + }
  RUNIT TEST PROTOCOL -- Mon Mar 28 14:21:53 2022 
  *********************************************** 
  Number of test functions: 1 
  Number of errors: 0 
  Number of failures: 1 
  
   
  1 Test Suite : 
  document_unit_test - 1 test function, 0 errors, 1 failure
  FAILURE in test_html: Error in RUnit::checkTrue(sum(reference %in% current)/length(current) >=  : 
    Test not TRUE
  
  
  
  
  Details 
  *************************** 
  Test Suite: document_unit_test 
  Test function regexp: ^test_+ 
  Test file regexp: ^.*\.[rR] 
  Involved directory: 
  /data/gannet/ripley/R/packages/tests-clang/document.Rcheck/document/runit_tests 
  --------------------------- 
  Test file: /data/gannet/ripley/R/packages/tests-clang/document.Rcheck/document/runit_tests/expected_files.r 
  test_html: FAILURE !! (check number 1)
  Error in RUnit::checkTrue(sum(reference %in% current)/length(current) >=  : 
    Test not TRUE
  
  Error: RUnit failed.
  Execution halted