Running 'testthat.R' [105s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # MixtComp version 4.0  - july 2019
  > # Copyright (C) Inria - Université de Lille - CNRS
  > 
  > # This program is free software: you can redistribute it and/or modify
  > # it under the terms of the GNU Affero General Public License as
  > # published by the Free Software Foundation, either version 3 of the
  > # License, or (at your option) any later version.
  > # This program is distributed in the hope that it will be useful,
  > # but WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  > # GNU Affero General Public License for more details.
  > #
  > # You should have received a copy of the GNU Affero General Public License
  > # along with this program.  If not, see <https://www.gnu.org/licenses/>
  > 
  > 
  > library(testthat)
  > library(RMixtCompIO)
  > 
  > test_check("RMixtCompIO")
  [1] "mStep error in variable: nBinom2\nNegativeBinomial variables must have a p value different from 0 or 1 in each class. It is not the case in class: 0. \nNegativeBinomial variables must have a p value different from 0 or 1 in each class. It is not the case in class: 1. \n\n"
          partition
  zPredict 1 2
         1 3 0
         2 0 3
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 49 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test.run.R:172'): NegativeBinomial model works ────────────────────
  resLearn$warnLog not equal to NULL.
  Types not compatible: character is not NULL
  ── Error ('test.run.R:174'): NegativeBinomial model works ──────────────────────
  Error in `abs(sapply(partition1, function(x) {
      x - partition1
  }))`: non-numeric argument to mathematical function
  Backtrace:
      ▆
   1. ├─testthat::expect_gte(rand.index(partition, resGen$z), 0.9) at test.run.R:174:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─RMixtCompIO:::rand.index(partition, resGen$z)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 49 ]
  Error: Test failures
  Execution halted