Running ‘testthat.R’ [41s/50s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(bmm)
  > 
  > test_check("bmm")
  No formula for parameter kappa provided. Only a fixed intercept will be estimated.
  
  Your data has been sorted by the following predictors: 
  
  * caution: you have set `sort_data=TRUE`. You need to be careful when using
  brms postprocessing methods that rely on the data order, such as generating
  predictions. Assuming you assigned the result of bmm() to a variable called
  `fit`, you can extract the sorted data from the fitted object with:
  
  data_sorted <- fit$data
  
  Your data has been sorted by the following predictors: 
  
  * caution: you have set `sort_data=TRUE`. You need to be careful when using
  brms postprocessing methods that rely on the data order, such as generating
  predictions. Assuming you assigned the result of bmm() to a variable called
  `fit`, you can extract the sorted data from the fitted object with:
  
  data_sorted <- fit$data
  
  Your data has been sorted by the following predictors: 
  
  * caution: you have set `sort_data=TRUE`. You need to be careful when using
  brms postprocessing methods that rely on the data order, such as generating
  predictions. Assuming you assigned the result of bmm() to a variable called
  `fit`, you can extract the sorted data from the fitted object with:
  
  data_sorted <- fit$data
  [ FAIL 1 | WARN 0 | SKIP 15 | PASS 303 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-bmm.R:3:3', 'test-bmm.R:58:3',
    'test-helpers-model.R:83:3', 'test-model_imm.R:4:3', 'test-model_imm.R:17:3',
    'test-model_imm.R:31:3', 'test-model_imm.R:46:3', 'test-model_imm.R:100:3',
    'test-model_mixture3p.R:2:3', 'test-model_mixture3p.R:19:3'
  • Skipping (1): 'test-restructure.R:10:3'
  • empty test (2): 'test-helpers-model.R:119:1', 'test-helpers-model.R:126:1'
  • interactive() is not TRUE (2): 'test-summary.R:2:3', 'test-update.R:4:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-distributions.R:68:3'): dmixture3p integrates to 1 ───────────
  ...$value (`actual`) not equal to 1 (`expected`).
  
    `actual`: 0.999999983
  `expected`: 1.000000000
  
  [ FAIL 1 | WARN 0 | SKIP 15 | PASS 303 ]
  Error: Test failures
  Execution halted