Running ‘spelling.R’
  Running ‘testthat.R’ [25s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(correlation)
  > 
  > is_dev_version <- length(strsplit(packageDescription("correlation")$Version, "\\.")[[1]]) > 3
  > if (is_dev_version) {
  +   Sys.setenv("RunAllcorrelationTests" = "yes")
  + } else {
  +   Sys.setenv("RunAllcorrelationTests" = "no")
  + }
  > 
  > test_check("correlation")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  boundary (singular) fit: see ?isSingular
  ************
  Welcome to BayesFactor 0.9.12-4.2. If you have questions, please contact Richard Morey (richarddmorey@gmail.com).
  
  Type BFManual() to open the manual.
  ************
  
  Attaching package: 'BayesFactor'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  
  Attaching package: 'psych'
  
  The following objects are masked from 'package:ggplot2':
  
      %+%, alpha
  
  The following object is masked from 'package:testthat':
  
      describe
  
  
  
  Attaching package: 'Hmisc'
  
  The following object is masked from 'package:psych':
  
      describe
  
  The following objects are masked from 'package:dplyr':
  
      src, summarize
  
  The following object is masked from 'package:testthat':
  
      describe
  
  The following objects are masked from 'package:base':
  
      format.pval, units
  
  Loading required namespace: ppcor
  For i = 2 j = 1  A cell entry of 0 was replaced with correct =  0.5.  Check your data!
  For i = 2 j = 1  A cell entry of 0 was replaced with correct =  0.5.  Check your data!
  For i = 2 j = 1  A cell entry of 0 was replaced with correct =  0.5.  Check your data!
  Loading required package: gt
  
  Attaching package: 'gt'
  
  The following object is masked from 'package:Hmisc':
  
      html
  
  The following object is masked from 'package:testthat':
  
      matches
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (9)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-misc.R:3:3): Mahalanobis ────────────────────────────────────────
  Error in `FUN(x, aperm(array(STATS, dims[perm]), order(perm)), ...)`: non-numeric argument to binary operator
  Backtrace:
      █
   1. └─correlation::distance_mahalanobis(data = iris[, 1:4], robust = FALSE) test-misc.R:3:2
   2.   └─stats::mahalanobis(data, center = colMeans(data), cov = stats::cov(data))
   3.     └─base::sweep(x, 2L, center)
  
  [ FAIL 1 | WARN 9 | SKIP 9 | PASS 112 ]
  Error: Test failures
  Execution halted