Running ‘testthat.R’ [55s/63s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(magrittr)
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  > library(ROI)
  ROI: R Optimization Infrastructure
  Registered solver plugins: nlminb, alabama, clp, deoptimr, deoptim, ecos, glpk, ipop, lpsolve, msbinlp, neos, nloptr.bobyqa, nloptr.crs2lm, nloptr.direct, nloptr.directL, nloptr.lbfgs, nloptr.neldermead, nloptr.newuoa, nloptr.sbplx, nloptr.stogo, nloptr.tnewton, nloptr.varmetric, nloptr.cobyla, nloptr.mma, nloptr.auglag, nloptr.isres, nloptr.slsqp, optimx, osqp, qpoases, quadprog, scs, symphony.
  Default solver: auto.
  > library(ROI.plugin.glpk)
  > library(ompr)
  > library(ompr.roi)
  > test_check("ompr.roi")
  ── ERROR (test-solver-roi.R:74:3): ROI can solve a bin packing problem ─────────
  Error: first argument has length > 1
  Backtrace:
      █
   1. └─ompr::set_objective(m, sum_expr(y[i], i = 1:max_bins), "min") test-solver-roi.R:74:2
   2.   ├─ompr::set_objective_(...)
   3.   └─ompr:::set_objective_.optimization_model(...)
   4.     └─ompr:::normalize_expression(model, obj_ast, expression$env)
   5.       └─ompr:::bind_variables(model, expression, envir)
   6.         └─base::exists(names(model$variables), calling_env)
  
  ── ERROR (test-solver-roi.R:94:3): quantified constraints work ─────────────────
  Error: first argument has length > 1
  Backtrace:
      █
   1. └─ompr::set_objective(m, sum_expr(y[i], i = 1:max_bins), sense = "min") test-solver-roi.R:94:2
   2.   ├─ompr::set_objective_(...)
   3.   └─ompr:::set_objective_.optimization_model(...)
   4.     └─ompr:::normalize_expression(model, obj_ast, expression$env)
   5.       └─ompr:::bind_variables(model, expression, envir)
   6.         └─base::exists(names(model$variables), calling_env)
  
  ── ERROR (test-solver-roi.R:105:3): bug 20160704: did not correctly convert cons
  Error: first argument has length > 1
  Backtrace:
       █
    1. ├─`%>%`(...) test-solver-roi.R:105:2
    2. ├─ompr::solve_model(., with_ROI(solver = "glpk"))
    3. ├─ompr::add_constraint(...)
    4. │ └─ompr::add_constraint_(...)
    5. └─ompr::set_objective(., 0)
    6.   ├─ompr::set_objective_(...)
    7.   └─ompr:::set_objective_.optimization_model(...)
    8.     └─ompr:::normalize_expression(model, obj_ast, expression$env)
    9.       └─ompr:::bind_variables(model, expression, envir)
   10.         └─base::exists(names(model$variables), calling_env)
  
  ── ERROR (test-solver-roi.R:130:3): bug 20161006 #75: warning messge when settin
  Error: first argument has length > 1
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-solver-roi.R:130:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─`%>%`(...) test-solver-roi.R:131:4
   10. ├─ompr::solve_model(., with_ROI(solver = "glpk"))
   11. ├─ompr::add_constraint(., x + y <= 11.25)
   12. │ └─ompr::add_constraint_(...)
   13. └─ompr::set_objective(., x + y, "max")
   14.   ├─ompr::set_objective_(...)
   15.   └─ompr:::set_objective_.optimization_model(...)
   16.     └─ompr:::normalize_expression(model, obj_ast, expression$env)
   17.       └─ompr:::bind_variables(model, expression, envir)
   18.         └─base::exists(names(model$variables), calling_env)
  
  ── ERROR (test-solver-roi.R:143:3): bug 20161011 #82: problems with bound indexe
  Error: first argument has length > 1
  Backtrace:
      █
   1. ├─`%>%`(...) test-solver-roi.R:143:2
   2. ├─ompr::add_constraint(., x[1] <= 1)
   3. │ └─ompr::add_constraint_(...)
   4. └─ompr::set_objective(., 0)
   5.   ├─ompr::set_objective_(...)
   6.   └─ompr:::set_objective_.optimization_model(...)
   7.     └─ompr:::normalize_expression(model, obj_ast, expression$env)
   8.       └─ompr:::bind_variables(model, expression, envir)
   9.         └─base::exists(names(model$variables), calling_env)
  
  ── ERROR (test-solver-roi.R:175:3): you can export the model as an ROI::OP objec
  Error: first argument has length > 1
  Backtrace:
      █
   1. └─ompr::set_objective(m, sum_expr(y[i], i = 1:max_bins), sense = "min") test-solver-roi.R:175:2
   2.   ├─ompr::set_objective_(...)
   3.   └─ompr:::set_objective_.optimization_model(...)
   4.     └─ompr:::normalize_expression(model, obj_ast, expression$env)
   5.       └─ompr:::bind_variables(model, expression, envir)
   6.         └─base::exists(names(model$variables), calling_env)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-solver-roi.R:74:3): ROI can solve a bin packing problem
  ERROR (test-solver-roi.R:94:3): quantified constraints work
  ERROR (test-solver-roi.R:105:3): bug 20160704: did not correctly convert constraint
  ERROR (test-solver-roi.R:130:3): bug 20161006 #75: warning messge when setting bound on single var
  ERROR (test-solver-roi.R:143:3): bug 20161011 #82: problems with bound indexes
  ERROR (test-solver-roi.R:175:3): you can export the model as an ROI::OP object
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 25 ]
  Error: Test failures
  Execution halted