Running ‘testthat.R’ [5s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ivmte)
  > 
  > test_check("ivmte")
  
  LP solver: lp_solve ('lpSolveAPI')
  
  Obtaining propensity scores...
  
  Generating target moments...
      Integrating terms for control group...
      Integrating terms for treated group...
  
  Generating IV-like moments...
      Moment 1...
      Moment 2...
      Moment 3...
      Moment 4...
      Moment 5...
      Moment 6...
      Moment 7...
      Independent moments: 7 
  
  Performing audit procedure...
      Generating audit grid...
      Generating initial constraint grid...
  
      Audit count: 1
      Minimum criterion: 0.2937672
      Obtaining bounds...
      Violations: 0
      Audit finished.
  
  Bounds on the target parameter: [0.349139, 0.3551344]
  
  
  LP solver: lp_solve ('lpSolveAPI')
  
  Obtaining propensity scores...
  
  Generating target moments...
      Integrating terms for control group...
      Integrating terms for treated group...
  
  Generating IV-like moments...
      Moment 1...
      Moment 2...
      Independent moments: 2 
  
  Performing audit procedure...
      Generating audit grid...
      Generating initial constraint grid...
  
      Audit count: 1
      Minimum criterion: 0
      Obtaining bounds...
      Violations:  42 
      Expanding constraint grid to include 42 additional points...
  
      Audit count: 2
      Minimum criterion: 0
      Obtaining bounds...
      Violations: 0
      Audit finished.
  
  Bounds on the target parameter: [-0.8106808, 1.084]
  
  
  LP solver: lp_solve ('lpSolveAPI')
  
  Obtaining propensity scores...
  
  Generating target moments...
      Integrating terms for control group...
      Integrating terms for treated group...
  ── 1. Error: (unknown) (@test_splines.R#14)  ───────────────────────────────────
  argument "X" is missing, with no default
  Backtrace:
   1. ivmte::ivmte(...)
   4. ivmte:::ivmteEstimate(...)
   7. ivmte::genTarget(...)
   8. ivmte:::genGammaSplines(...)
   9. base::sweep(x = tmpGamma, MARGIN = 1, STATS = multiplier, FUN = "*")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 31 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 1 ]
  1. Error: (unknown) (@test_splines.R#14) 
  
  Error: testthat unit tests failed
  Execution halted