Running ‘runTests.R’ [75s/87s]
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
  > library(RUnit)
  > library(Rfast)
  Loading required package: Rcpp
  Loading required package: zigg
  Loading required package: RcppParallel
  
  Attaching package: 'RcppParallel'
  
  The following object is masked from 'package:Rcpp':
  
      LdFlags
  
  
  Rfast: 2.1.5.2
   ___ __ __ __ __    __ __ __ __ __ _             _               __ __ __ __ __     __ __ __ __ __ __   
  |  __ __ __ __  |  |  __ __ __ __ _/            / \             |  __ __ __ __ /   /__ __ _   _ __ __\  
  | |           | |  | |                         / _ \            | |                        / /          
  | |           | |  | |                        / / \ \           | |                       / /          
  | |           | |  | |                       / /   \ \          | |                      / /          
  | |__ __ __ __| |  | |__ __ __ __           / /     \ \         | |__ __ __ __ _        / /__/\          
  |    __ __ __ __|  |  __ __ __ __|         / /__ _ __\ \        |_ __ __ __ _   |      / ___  /           
  |   \              | |                    / _ _ _ _ _ _ \                     | |      \/  / /       
  | |\ \             | |                   / /           \ \                    | |         / /          
  | | \ \            | |                  / /             \ \                   | |        / /          
  | |  \ \           | |                 / /               \ \                  | |       / /          
  | |   \ \__ __ _   | |                / /                 \ \     _ __ __ __ _| |      / /          
  |_|    \__ __ __\  |_|               /_/                   \_\   /_ __ __ __ ___|      \/             team
  > library(Matrix)
  > library(cowplot)
  > library(decorrelate)
  > library(ggplot2)
  > library(whitening)
  Loading required package: corpcor
  
  Attaching package: 'whitening'
  
  The following object is masked from 'package:decorrelate':
  
      whiten
  
  > library(yacca)
  yacca: Yet Another Canonical Correlation Analysis Package
  Version 1.4-2 created on 2022-03-08.
  copyright (c) 2008, Carter T. Butts, University of California-Irvine
   For citation information, type citation("yacca").
   Type help("yacca-package") to get started.
  
  
  Attaching package: 'yacca'
  
  The following object is masked from 'package:whitening':
  
      cca
  
  > library(decorrelate)
  > 
  > # BiocGenerics:::testPackage
  > testPackage <- function (pkgname = NULL, subdir = "unitTests", pattern = "^test_.*\\.R$", 
  +     path = getwd()) {
  +     .failure_details <- function(result) {
  +         res <- result[[1L]]
  +         if (res$nFail > 0 || res$nErr > 0) {
  +             Filter(function(x) length(x) > 0, lapply(res$sourceFileResults, 
  +                 function(fileRes) {
  +                   names(Filter(function(x) x$kind != "success", 
  +                     fileRes))
  +                 }))
  +         }
  +         else list()
  +     }
  +     if (is.null(pkgname)) {
  +         root <- packageRoot(path)
  +         if (is.null(root)) 
  +             stop("could not infer package root directory")
  +         pkgname0 <- packageInfo(root)$Package
  +         if (is.null(pkgname)) {
  +             pkgname <- pkgname0
  +         }
  +         else if (!identical(pkgname, pkgname0)) {
  +             stop("'pkgname' and inferred DESCRIPTION 'Package' differ")
  +         }
  +     }
  +     else {
  +         root <- system.file(package = pkgname)
  +     }
  +     library(pkgname, character.only = TRUE, quietly = TRUE)
  +     dir <- file.path(root, subdir)
  +     if (!file.exists(dir)) {
  +         dir <- file.path(root, "inst", subdir)
  +     }
  +     if (!file.exists(dir)) {
  +         stop("unable to find unit tests, no subdir ", sQuote(subdir))
  +     }
  +     library("RUnit", quietly = TRUE)
  +     RUnit_opts <- getOption("RUnit", list())
  +     RUnit_opts$verbose <- 0L
  +     RUnit_opts$silent <- TRUE
  +     RUnit_opts$verbose_fail_msg <- TRUE
  +     oopt <- options(RUnit = RUnit_opts)
  +     on.exit(options(oopt))
  +     suite <- RUnit::defineTestSuite(name = paste(pkgname, "RUnit Tests"), 
  +         dirs = dir, testFileRegexp = pattern, rngKind = "default", 
  +         rngNormalKind = "default")
  +     result <- RUnit::runTestSuite(suite)
  +     cat("\n\n")
  +     RUnit::printTextProtocol(result, showDetails = FALSE)
  +     if (length(details <- .failure_details(result)) > 0) {
  +         cat("\nTest files with failing tests\n")
  +         for (i in seq_along(details)) {
  +             cat("\n  ", basename(names(details)[[i]]), "\n")
  +             for (j in seq_along(details[[i]])) {
  +                 cat("    ", details[[i]][[j]], "\n")
  +             }
  +         }
  +         cat("\n\n")
  +         stop("unit tests failed for package ", pkgname)
  +     }
  +     result
  + }
  > 
  > 
  > testPackage("decorrelate")
  Timing stopped at: 0.012 0 0.011
  Error in loadNamespace(x) : there is no package called 'CCA'
  
  
  RUNIT TEST PROTOCOL -- Sun Jun  7 14:29:10 2026 
  *********************************************** 
  Number of test functions: 24 
  Number of errors: 1 
  Number of failures: 0 
  
   
  1 Test Suite : 
  decorrelate RUnit Tests - 24 test functions, 1 error, 0 failures
  ERROR in test_cca: Error in loadNamespace(x) : there is no package called 'CCA'
  
  Test files with failing tests
  
     test_cca.R 
       test_cca 
  
  
  Error in testPackage("decorrelate") : 
    unit tests failed for package decorrelate
  In addition: Warning message:
  In chisq.test(x, y, correct = FALSE) :
    Chi-squared approximation may be incorrect
  Execution halted