Running 'testthat.R' [64s/70s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > rm(list=ls())
  > library(testthat)
  > library(lavaan)
  This is lavaan 0.6-9
  lavaan is FREE software! Please report any bugs.
  > library(bain)
  > test_check("bain")
  == Failed tests ================================================================
  -- Error (test-JASP-ttest.R:277:3): (code run outside of `test_that()`) --------
  Error: Some of the parameters referred to in the 'hypothesis' do not correspond to parameter names of object 'x'.
    The following parameter names in the 'hypothesis' did not match any parameters in 'x': difference
    The parameters in object 'x' are named: mean difference
  Backtrace:
      x
   1. +-base::do.call(bain:::bain_ttest_cran, args) test-JASP-ttest.R:277:2
   2. \-(function (x, y = NULL, nu = 0, type = 1, paired = FALSE, seed) ...
   3.   +-base::do.call(bain, args)
   4.   +-(function (x, hypothesis, fraction = 1, ...) ...
   5.   \-bain:::bain.t_test(...)
   6.     +-base::do.call(bain, Args)
   7.     +-(function (x, hypothesis, fraction = 1, ...) ...
   8.     \-bain:::bain.default(...)
   9.       \-bain:::parse_hypothesis(names(x), hypothesis)
  -- Error (test-other_fraction.R:343:1): (code run outside of `test_that()`) ----
  Error: Some of the parameters referred to in the 'hypothesis' do not correspond to parameter names of object 'x'.
    The following parameter names in the 'hypothesis' did not match any parameters in 'x': difference
    The parameters in object 'x' are named: mean difference
  Backtrace:
      x
   1. +-bain::bain(...) test-other_fraction.R:343:0
   2. \-bain:::bain.t_test(...)
   3.   +-base::do.call(bain, Args)
   4.   +-(function (x, hypothesis, fraction = 1, ...) ...
   5.   \-bain:::bain.default(...)
   6.     \-bain:::parse_hypothesis(names(x), hypothesis)
  -- Error (test-ttest.R:129:1): (code run outside of `test_that()`) -------------
  Error: Some of the parameters referred to in the 'hypothesis' do not correspond to parameter names of object 'x'.
    The following parameter names in the 'hypothesis' did not match any parameters in 'x': difference
    The parameters in object 'x' are named: mean difference
  Backtrace:
      x
   1. +-bain::bain(ttest, "difference=0; difference>0; difference<0") test-ttest.R:129:0
   2. \-bain:::bain.t_test(ttest, "difference=0; difference>0; difference<0")
   3.   +-base::do.call(bain, Args)
   4.   +-(function (x, hypothesis, fraction = 1, ...) ...
   5.   \-bain:::bain.default(...)
   6.     \-bain:::parse_hypothesis(names(x), hypothesis)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 779 ]
  Error: Test failures
  Execution halted