Running ‘testthat.R’ [52s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(adoptr)
  
  Attaching package: 'adoptr'
  
  The following object is masked from 'package:testthat':
  
      expectation
  
  > 
  > test_check("adoptr")
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  Error: nlopt_add_inequality_mconstraint returned NLOPT_INVALID_ARGS.
  [ FAIL 10 | WARN 6 | SKIP 0 | PASS 384 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_OneStageDesign.R:64:5'): Optimal one-stage design with point prior is computable ──
  round(evaluate(pow, d2), 1) not equal to 0.8.
  1/1 mismatches
  [1] 0.9 - 0.8 == 0.1
  ── Failure ('test_OneStageDesign.R:69:5'): Optimal one-stage design with point prior is computable ──
  round(evaluate(toer, d2), 2) not equal to 0.05.
  1/1 mismatches
  [1] 0.02 - 0.05 == -0.03
  ── Failure ('test_OneStageDesign.R:74:5'): Optimal one-stage design with point prior is computable ──
  sign(evaluate(ess, d2) - 40) == -1 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test_StudentDistribution.R:128:3'): Published results are reproducible ──
  ceiling(osd1@n1) not equal to 18/2.
  1/1 mismatches
  [1] 20 - 9 == 11
  ── Failure ('test_StudentDistribution.R:133:3'): Published results are reproducible ──
  ceiling(osd2@n1) not equal to 34/2.
  1/1 mismatches
  [1] 20 - 17 == 3
  ── Failure ('test_StudentDistribution.R:138:3'): Published results are reproducible ──
  ceiling(osd3@n1) not equal to 128/2.
  1/1 mismatches
  [1] 20 - 64 == -44
  ── Failure ('test_minimize.R:59:5'): nloptr maxiter warning correctly passed ───
  `minimize(...)` did not produce any warnings.
  ── Failure ('test_minimize.R:228:5'): base-case results are consistent - no post processing ──
  evaluate(ess, opt_ts$design) is not strictly less than evaluate(ess, opt_gs$design). Difference: 0.229
  ── Failure ('test_minimize.R:249:5'): base-case results are consistent - no post processing ──
  mean(sim_null$n2 + sim_null$n1) not equal to evaluate(ess_0, opt_ts$design).
  1/1 mismatches
  [1] 38.3 - 38.2 == 0.029
  ── Failure ('test_minimize.R:305:5'): conditional constraints work ─────────────
  evaluate(cp, opt_ts$design, opt_ts$design@c1f) is not more than 0.75 - tol. Difference: -0.109
  
  [ FAIL 10 | WARN 6 | SKIP 0 | PASS 384 ]
  Error: Test failures
  Execution halted