Running ‘testthat.R’ [19s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # --------------------------------------------------- #
  > # Author: Marius D. Pascariu
  > # License: MIT
  > # Last update: Wed Jun 05 14:41:16 2019
  > # --------------------------------------------------- #
  > 
  > library(testthat)
  > # expect_message(library(MortalityLaws))
  > 
  > test_check("MortalityLaws")
  Loading required package: MortalityLaws
  [1] 1
  [1] 2
  [1] 3
  [1] 4
  [1] 5
  [1] 6
  [1] 7
  [1] 8
  [1] 9
  [1] 10
  [1] 11
  [1] 12
  [1] 13
  [1] 14
  [1] 15
  [1] 16
  M1: gompertz
  M2: gompertz0
  M3: invgompertz
  M4: makeham
  M5: makeham0
  M6: opperman
  M7: thiele
  M8: wittstein
  M9: perks
  M10: weibull
  M11: invweibull
  M12: vandermaen
  M13: vandermaen2
  M14: strehler_mildvan
  M15: quadratic
  M16: beard
  M17: beard_makeham
  M18: ggompertz
  M19: siler
  M20: HP
  M21: HP2
  M22: HP3
  M23: HP4
  M24: rogersplanck
  M25: martinelle
  M26: carriere1
  M27: carriere2
  M28: kostaki
  M29: kannisto
  M30: kannisto_makeham
        :Downloading AUS           :Downloading Japan           :Downloading Japan           :Downloading Kyoto     ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_MortalityLaws.R:53:7): Test MortalityLaw function ─────────────
  is.matrix(pred) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test_convertFx.R:14:1): (code run outside of `test_that()`) ──────────
  Error: The 'x' and 'data' do not have the same length
  Backtrace:
      █
   1. └─MortalityLaws::convertFx(x, data = mx, from = "mx", to = "qx") test_convertFx.R:14:0
  
  [ FAIL 31 | WARN 1 | SKIP 0 | PASS 912 ]
  Error: Test failures
  Execution halted