CRAN Package Check Results for Maintainer ‘Dirk Schumacher <mail at dirk-schumacher.net>’

Last updated on 2020-12-02 00:48:39 CET.

Package ERROR OK
anthro 12
duckduckr 12
encryptedRmd 12
listcomp 12
ompr 5 7
ompr.roi 5 7
rpicosat 12
thankr 12

Package anthro

Current CRAN status: OK: 12

Package duckduckr

Current CRAN status: OK: 12

Package encryptedRmd

Current CRAN status: OK: 12

Package listcomp

Current CRAN status: OK: 12

Package ompr

Current CRAN status: ERROR: 5, OK: 7

Version: 0.8.0
Check: examples
Result: ERROR
    Running examples in 'ompr-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: extract_constraints
    > ### Title: Extract the constraint matrix, the right hand side and the sense
    > ### from a model
    > ### Aliases: extract_constraints
    >
    > ### ** Examples
    >
    > library(magrittr)
    > model <- MIPModel() %>%
    + add_variable(x[i], i = 1:3) %>%
    + add_variable(y[i], i = 1:3) %>%
    + add_constraint(x[i] + y[i] <= 1, i = 1:3)
    Error in exists(names(model$variables), calling_env) :
     first argument has length > 1
    Calls: %>% ... add_constraint_internal -> normalize_expression -> bind_variables -> exists
    Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.8.0
Check: tests
Result: ERROR
     Running 'testthat.R' [13s/12s]
    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
    
     > test_check("ompr")
     Loading required package: ompr
     -- ERROR (test-add-constraint.R:15:3): constraints should be saved with only + o
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-add-constraint.R:15:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x - y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-add-constraint.R:23:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., +x - y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-helpers.R:73:2
     2. \-ompr::add_constraint(., y - a * x[i] <= 1, i = 1:2)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-helpers.R:82:2
     2. \-ompr::add_constraint(., sum_expr(x[i], i = 1:2, i == 23) == 1)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-ompr:::add_constraint_internal()
     6. \-ompr:::normalize_expression(model, lhs_ast, envir)
     7. \-ompr:::bind_variables(model, expression, envir)
     8. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of name
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:100:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:109:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:119:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:127:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matri
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:135:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:211:4
     2. +-ompr::add_constraint(...)
     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)
    
     -- Skip (test-model-milp.R:141:3): small to mid sized models should work -------
     Reason: On CRAN
    
     -- Skip (test-model-milp.R:156:3): small to mid sized model should work #2 -----
     Reason: On CRAN
    
     -- ERROR (test-model.R:78:3): bug 20160701: -x as a formula --------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-testthat::expect_silent(...) test-model.R:78: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. +-`%>%`(...)
     10. +-ompr::set_objective(., -x + y, sense = "max")
     11. | \-ompr::set_objective_(...)
     12. \-ompr::add_constraint(., x + y <= 10)
     13. +-ompr::add_constraint_(...)
     14. \-ompr:::add_constraint_.optimization_model(...)
     15. \-ompr:::add_constraint_internal()
     16. \-ompr:::normalize_expression(model, lhs_ast, envir)
     17. \-ompr:::bind_variables(model, expression, envir)
     18. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:85:3): model has a nice default output ------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:85:2
     2. +-ompr::set_objective(., -x + y, sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:109:3): multiplications in objective fun ----------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:109:2
     2. +-ompr::set_objective(., 5 * (-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:122:3): devision in objective fun -----------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:122:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- Skip (test-model.R:130:3): small to mid sized models should work ------------
     Reason: On CRAN
    
     -- Skip (test-model.R:145:3): small to mid sized model should work #2 ----------
     Reason: On CRAN
    
     -- ERROR (test-solution.R:4:2): export single var to numeric -------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:4:1
     2. +-ompr::set_objective(., x + y)
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 1)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:18:3): get_solution: fails if variable not present ---
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:18:2
     2. +-ompr::set_objective(., x + y)
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 1)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:86:3): export solutions to single value if all indexes
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:86:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:101:3): export solutions to df in a model with more th
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:101:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:116:3): solution has a nice default output -----------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:116:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:131:3): solution indexes should not be factors -------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:131:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- Skipped tests --------------------------------------------------------------
     * On CRAN (4)
    
     == testthat results ===========================================================
     ERROR (test-add-constraint.R:15:3): constraints should be saved with only + operators
     ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2)
     ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0 variables
     ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of named elements
     ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint matrix as a matrix
     ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint right hand side
     ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint sense
     ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matrix with column-oriented encoding
     ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the order of the constraint matrix
     ERROR (test-model.R:78:3): bug 20160701: -x as a formula
     ERROR (test-model.R:85:3): model has a nice default output
     ERROR (test-model.R:109:3): multiplications in objective fun
     ERROR (test-model.R:122:3): devision in objective fun
     ERROR (test-solution.R:4:2): export single var to numeric
     ERROR (test-solution.R:18:3): get_solution: fails if variable not present
     ERROR (test-solution.R:86:3): export solutions to single value if all indexes bound
     ERROR (test-solution.R:101:3): export solutions to df in a model with more than one variable
     ERROR (test-solution.R:116:3): solution has a nice default output
     ERROR (test-solution.R:131:3): solution indexes should not be factors
    
     [ FAIL 20 | WARN 0 | SKIP 4 | PASS 469 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.8.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [8s/12s]
    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
    
     > test_check("ompr")
     Loading required package: ompr
     ── ERROR (test-add-constraint.R:15:3): constraints should be saved with only + o
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-add-constraint.R:15:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x - y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-add-constraint.R:23:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., +x - y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-helpers.R:73:2
     2. └─ompr::add_constraint(., y - a * x[i] <= 1, i = 1:2)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-helpers.R:82:2
     2. └─ompr::add_constraint(., sum_expr(x[i], i = 1:2, i == 23) == 1)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─ompr:::add_constraint_internal()
     6. └─ompr:::normalize_expression(model, lhs_ast, envir)
     7. └─ompr:::bind_variables(model, expression, envir)
     8. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of name
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:100:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:109:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:119:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:127:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matri
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:135:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:211:4
     2. ├─ompr::add_constraint(...)
     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)
    
     ── Skip (test-model-milp.R:141:3): small to mid sized models should work ───────
     Reason: On CRAN
    
     ── Skip (test-model-milp.R:156:3): small to mid sized model should work #2 ─────
     Reason: On CRAN
    
     ── ERROR (test-model.R:78:3): bug 20160701: -x as a formula ────────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─testthat::expect_silent(...) test-model.R:78: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. ├─`%>%`(...)
     10. ├─ompr::set_objective(., -x + y, sense = "max")
     11. │ └─ompr::set_objective_(...)
     12. └─ompr::add_constraint(., x + y <= 10)
     13. ├─ompr::add_constraint_(...)
     14. └─ompr:::add_constraint_.optimization_model(...)
     15. └─ompr:::add_constraint_internal()
     16. └─ompr:::normalize_expression(model, lhs_ast, envir)
     17. └─ompr:::bind_variables(model, expression, envir)
     18. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:85:3): model has a nice default output ──────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:85:2
     2. ├─ompr::set_objective(., -x + y, sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:109:3): multiplications in objective fun ────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:109:2
     2. ├─ompr::set_objective(., 5 * (-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:122:3): devision in objective fun ───────────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:122:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── Skip (test-model.R:130:3): small to mid sized models should work ────────────
     Reason: On CRAN
    
     ── Skip (test-model.R:145:3): small to mid sized model should work #2 ──────────
     Reason: On CRAN
    
     ── ERROR (test-solution.R:4:2): export single var to numeric ───────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:4:1
     2. ├─ompr::set_objective(., x + y)
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 1)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:18:3): get_solution: fails if variable not present ───
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:18:2
     2. ├─ompr::set_objective(., x + y)
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 1)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:86:3): export solutions to single value if all indexes
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:86:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:101:3): export solutions to df in a model with more th
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:101:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:116:3): solution has a nice default output ───────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:116:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:131:3): solution indexes should not be factors ───────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:131:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── Skipped tests ──────────────────────────────────────────────────────────────
     ● On CRAN (4)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     ERROR (test-add-constraint.R:15:3): constraints should be saved with only + operators
     ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2)
     ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0 variables
     ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of named elements
     ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint matrix as a matrix
     ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint right hand side
     ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint sense
     ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matrix with column-oriented encoding
     ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the order of the constraint matrix
     ERROR (test-model.R:78:3): bug 20160701: -x as a formula
     ERROR (test-model.R:85:3): model has a nice default output
     ERROR (test-model.R:109:3): multiplications in objective fun
     ERROR (test-model.R:122:3): devision in objective fun
     ERROR (test-solution.R:4:2): export single var to numeric
     ERROR (test-solution.R:18:3): get_solution: fails if variable not present
     ERROR (test-solution.R:86:3): export solutions to single value if all indexes bound
     ERROR (test-solution.R:101:3): export solutions to df in a model with more than one variable
     ERROR (test-solution.R:116:3): solution has a nice default output
     ERROR (test-solution.R:131:3): solution indexes should not be factors
    
     [ FAIL 20 | WARN 0 | SKIP 4 | PASS 469 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.8.0
Check: examples
Result: ERROR
    Running examples in ‘ompr-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: extract_constraints
    > ### Title: Extract the constraint matrix, the right hand side and the sense
    > ### from a model
    > ### Aliases: extract_constraints
    >
    > ### ** Examples
    >
    > library(magrittr)
    > model <- MIPModel() %>%
    + add_variable(x[i], i = 1:3) %>%
    + add_variable(y[i], i = 1:3) %>%
    + add_constraint(x[i] + y[i] <= 1, i = 1:3)
    Error in exists(names(model$variables), calling_env) :
     first argument has length > 1
    Calls: %>% ... add_constraint_internal -> normalize_expression -> bind_variables -> exists
    Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.8.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [13s/14s]
    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
    
     > test_check("ompr")
     Loading required package: ompr
     ── ERROR (test-add-constraint.R:15:3): constraints should be saved with only + o
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-add-constraint.R:15:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x - y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-add-constraint.R:23:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., +x - y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-helpers.R:73:2
     2. └─ompr::add_constraint(., y - a * x[i] <= 1, i = 1:2)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-helpers.R:82:2
     2. └─ompr::add_constraint(., sum_expr(x[i], i = 1:2, i == 23) == 1)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─ompr:::add_constraint_internal()
     6. └─ompr:::normalize_expression(model, lhs_ast, envir)
     7. └─ompr:::bind_variables(model, expression, envir)
     8. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of name
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:100:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:109:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:119:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:127:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matri
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:135:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:211:4
     2. ├─ompr::add_constraint(...)
     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)
    
     ── Skip (test-model-milp.R:141:3): small to mid sized models should work ───────
     Reason: On CRAN
    
     ── Skip (test-model-milp.R:156:3): small to mid sized model should work #2 ─────
     Reason: On CRAN
    
     ── ERROR (test-model.R:78:3): bug 20160701: -x as a formula ────────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─testthat::expect_silent(...) test-model.R:78: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. ├─`%>%`(...)
     10. ├─ompr::set_objective(., -x + y, sense = "max")
     11. │ └─ompr::set_objective_(...)
     12. └─ompr::add_constraint(., x + y <= 10)
     13. ├─ompr::add_constraint_(...)
     14. └─ompr:::add_constraint_.optimization_model(...)
     15. └─ompr:::add_constraint_internal()
     16. └─ompr:::normalize_expression(model, lhs_ast, envir)
     17. └─ompr:::bind_variables(model, expression, envir)
     18. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:85:3): model has a nice default output ──────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:85:2
     2. ├─ompr::set_objective(., -x + y, sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:109:3): multiplications in objective fun ────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:109:2
     2. ├─ompr::set_objective(., 5 * (-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:122:3): devision in objective fun ───────────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:122:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── Skip (test-model.R:130:3): small to mid sized models should work ────────────
     Reason: On CRAN
    
     ── Skip (test-model.R:145:3): small to mid sized model should work #2 ──────────
     Reason: On CRAN
    
     ── ERROR (test-solution.R:4:2): export single var to numeric ───────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:4:1
     2. ├─ompr::set_objective(., x + y)
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 1)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:18:3): get_solution: fails if variable not present ───
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:18:2
     2. ├─ompr::set_objective(., x + y)
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 1)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:86:3): export solutions to single value if all indexes
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:86:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:101:3): export solutions to df in a model with more th
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:101:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:116:3): solution has a nice default output ───────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:116:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:131:3): solution indexes should not be factors ───────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:131:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── Skipped tests ──────────────────────────────────────────────────────────────
     ● On CRAN (4)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     ERROR (test-add-constraint.R:15:3): constraints should be saved with only + operators
     ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2)
     ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0 variables
     ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of named elements
     ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint matrix as a matrix
     ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint right hand side
     ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint sense
     ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matrix with column-oriented encoding
     ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the order of the constraint matrix
     ERROR (test-model.R:78:3): bug 20160701: -x as a formula
     ERROR (test-model.R:85:3): model has a nice default output
     ERROR (test-model.R:109:3): multiplications in objective fun
     ERROR (test-model.R:122:3): devision in objective fun
     ERROR (test-solution.R:4:2): export single var to numeric
     ERROR (test-solution.R:18:3): get_solution: fails if variable not present
     ERROR (test-solution.R:86:3): export solutions to single value if all indexes bound
     ERROR (test-solution.R:101:3): export solutions to df in a model with more than one variable
     ERROR (test-solution.R:116:3): solution has a nice default output
     ERROR (test-solution.R:131:3): solution indexes should not be factors
    
     [ FAIL 20 | WARN 0 | SKIP 4 | PASS 469 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.8.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [12s/14s]
    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
    
     > test_check("ompr")
     Loading required package: ompr
     ── ERROR (test-add-constraint.R:15:3): constraints should be saved with only + o
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-add-constraint.R:15:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x - y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-add-constraint.R:23:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., +x - y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-helpers.R:73:2
     2. └─ompr::add_constraint(., y - a * x[i] <= 1, i = 1:2)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-helpers.R:82:2
     2. └─ompr::add_constraint(., sum_expr(x[i], i = 1:2, i == 23) == 1)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─ompr:::add_constraint_internal()
     6. └─ompr:::normalize_expression(model, lhs_ast, envir)
     7. └─ompr:::bind_variables(model, expression, envir)
     8. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of name
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:100:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:109:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:119:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:127:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matri
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:135:4
     2. └─ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. ├─ompr::add_constraint_(...)
     4. └─ompr:::add_constraint_.optimization_model(...)
     5. └─base::apply(...)
     6. └─ompr:::FUN(newX[, i], ...)
     7. └─ompr:::add_constraint_internal(calling_env)
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model-api.R:211:4
     2. ├─ompr::add_constraint(...)
     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)
    
     ── Skip (test-model-milp.R:141:3): small to mid sized models should work ───────
     Reason: On CRAN
    
     ── Skip (test-model-milp.R:156:3): small to mid sized model should work #2 ─────
     Reason: On CRAN
    
     ── ERROR (test-model.R:78:3): bug 20160701: -x as a formula ────────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─testthat::expect_silent(...) test-model.R:78: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. ├─`%>%`(...)
     10. ├─ompr::set_objective(., -x + y, sense = "max")
     11. │ └─ompr::set_objective_(...)
     12. └─ompr::add_constraint(., x + y <= 10)
     13. ├─ompr::add_constraint_(...)
     14. └─ompr:::add_constraint_.optimization_model(...)
     15. └─ompr:::add_constraint_internal()
     16. └─ompr:::normalize_expression(model, lhs_ast, envir)
     17. └─ompr:::bind_variables(model, expression, envir)
     18. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:85:3): model has a nice default output ──────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:85:2
     2. ├─ompr::set_objective(., -x + y, sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:109:3): multiplications in objective fun ────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:109:2
     2. ├─ompr::set_objective(., 5 * (-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-model.R:122:3): devision in objective fun ───────────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-model.R:122:2
     2. ├─ompr::set_objective(., 5/(-x + y), sense = "max")
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 10)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── Skip (test-model.R:130:3): small to mid sized models should work ────────────
     Reason: On CRAN
    
     ── Skip (test-model.R:145:3): small to mid sized model should work #2 ──────────
     Reason: On CRAN
    
     ── ERROR (test-solution.R:4:2): export single var to numeric ───────────────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:4:1
     2. ├─ompr::set_objective(., x + y)
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 1)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:18:3): get_solution: fails if variable not present ───
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:18:2
     2. ├─ompr::set_objective(., x + y)
     3. │ └─ompr::set_objective_(...)
     4. └─ompr::add_constraint(., x + y <= 1)
     5. ├─ompr::add_constraint_(...)
     6. └─ompr:::add_constraint_.optimization_model(...)
     7. └─ompr:::add_constraint_internal()
     8. └─ompr:::normalize_expression(model, lhs_ast, envir)
     9. └─ompr:::bind_variables(model, expression, envir)
     10. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:86:3): export solutions to single value if all indexes
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:86:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:101:3): export solutions to df in a model with more th
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:101:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:116:3): solution has a nice default output ───────────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:116:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── ERROR (test-solution.R:131:3): solution indexes should not be factors ───────
     Error: first argument has length > 1
     Backtrace:
     █
     1. ├─`%>%`(...) test-solution.R:131:2
     2. └─ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. ├─ompr::set_objective_(...)
     4. └─ompr:::set_objective_.optimization_model(...)
     5. └─ompr:::normalize_expression(model, obj_ast, expression$env)
     6. └─ompr:::bind_variables(model, expression, envir)
     7. └─base::exists(names(model$variables), calling_env)
    
     ── Skipped tests ──────────────────────────────────────────────────────────────
     ● On CRAN (4)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     ERROR (test-add-constraint.R:15:3): constraints should be saved with only + operators
     ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2)
     ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0 variables
     ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of named elements
     ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint matrix as a matrix
     ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint right hand side
     ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint sense
     ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matrix with column-oriented encoding
     ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the order of the constraint matrix
     ERROR (test-model.R:78:3): bug 20160701: -x as a formula
     ERROR (test-model.R:85:3): model has a nice default output
     ERROR (test-model.R:109:3): multiplications in objective fun
     ERROR (test-model.R:122:3): devision in objective fun
     ERROR (test-solution.R:4:2): export single var to numeric
     ERROR (test-solution.R:18:3): get_solution: fails if variable not present
     ERROR (test-solution.R:86:3): export solutions to single value if all indexes bound
     ERROR (test-solution.R:101:3): export solutions to df in a model with more than one variable
     ERROR (test-solution.R:116:3): solution has a nice default output
     ERROR (test-solution.R:131:3): solution indexes should not be factors
    
     [ FAIL 20 | WARN 0 | SKIP 4 | PASS 469 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.8.0
Check: running examples for arch ‘i386’
Result: ERROR
    Running examples in 'ompr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: extract_constraints
    > ### Title: Extract the constraint matrix, the right hand side and the sense
    > ### from a model
    > ### Aliases: extract_constraints
    >
    > ### ** Examples
    >
    > library(magrittr)
    > model <- MIPModel() %>%
    + add_variable(x[i], i = 1:3) %>%
    + add_variable(y[i], i = 1:3) %>%
    + add_constraint(x[i] + y[i] <= 1, i = 1:3)
    Error in exists(names(model$variables), calling_env) :
     first argument has length > 1
    Calls: %>% ... add_constraint_internal -> normalize_expression -> bind_variables -> exists
    Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.8.0
Check: running examples for arch ‘x64’
Result: ERROR
    Running examples in 'ompr-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: extract_constraints
    > ### Title: Extract the constraint matrix, the right hand side and the sense
    > ### from a model
    > ### Aliases: extract_constraints
    >
    > ### ** Examples
    >
    > library(magrittr)
    > model <- MIPModel() %>%
    + add_variable(x[i], i = 1:3) %>%
    + add_variable(y[i], i = 1:3) %>%
    + add_constraint(x[i] + y[i] <= 1, i = 1:3)
    Error in exists(names(model$variables), calling_env) :
     first argument has length > 1
    Calls: %>% ... add_constraint_internal -> normalize_expression -> bind_variables -> exists
    Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.8.0
Check: running tests for arch ‘i386’
Result: ERROR
     Running 'testthat.R' [6s]
    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
    
     > test_check("ompr")
     Loading required package: ompr
     -- ERROR (test-add-constraint.R:15:3): constraints should be saved with only + o
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-add-constraint.R:15:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x - y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-add-constraint.R:23:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., +x - y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-helpers.R:73:2
     2. \-ompr::add_constraint(., y - a * x[i] <= 1, i = 1:2)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-helpers.R:82:2
     2. \-ompr::add_constraint(., sum_expr(x[i], i = 1:2, i == 23) == 1)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-ompr:::add_constraint_internal()
     6. \-ompr:::normalize_expression(model, lhs_ast, envir)
     7. \-ompr:::bind_variables(model, expression, envir)
     8. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of name
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:100:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:109:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:119:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:127:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matri
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:135:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:211:4
     2. +-ompr::add_constraint(...)
     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)
    
     -- Skip (test-model-milp.R:141:3): small to mid sized models should work -------
     Reason: On CRAN
    
     -- Skip (test-model-milp.R:156:3): small to mid sized model should work #2 -----
     Reason: On CRAN
    
     -- ERROR (test-model.R:78:3): bug 20160701: -x as a formula --------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-testthat::expect_silent(...) test-model.R:78: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. +-`%>%`(...)
     10. +-ompr::set_objective(., -x + y, sense = "max")
     11. | \-ompr::set_objective_(...)
     12. \-ompr::add_constraint(., x + y <= 10)
     13. +-ompr::add_constraint_(...)
     14. \-ompr:::add_constraint_.optimization_model(...)
     15. \-ompr:::add_constraint_internal()
     16. \-ompr:::normalize_expression(model, lhs_ast, envir)
     17. \-ompr:::bind_variables(model, expression, envir)
     18. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:85:3): model has a nice default output ------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:85:2
     2. +-ompr::set_objective(., -x + y, sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:109:3): multiplications in objective fun ----------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:109:2
     2. +-ompr::set_objective(., 5 * (-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:122:3): devision in objective fun -----------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:122:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- Skip (test-model.R:130:3): small to mid sized models should work ------------
     Reason: On CRAN
    
     -- Skip (test-model.R:145:3): small to mid sized model should work #2 ----------
     Reason: On CRAN
    
     -- ERROR (test-solution.R:4:2): export single var to numeric -------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:4:1
     2. +-ompr::set_objective(., x + y)
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 1)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:18:3): get_solution: fails if variable not present ---
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:18:2
     2. +-ompr::set_objective(., x + y)
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 1)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:86:3): export solutions to single value if all indexes
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:86:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:101:3): export solutions to df in a model with more th
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:101:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:116:3): solution has a nice default output -----------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:116:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:131:3): solution indexes should not be factors -------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:131:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- Skipped tests --------------------------------------------------------------
     * On CRAN (4)
    
     == testthat results ===========================================================
     ERROR (test-add-constraint.R:15:3): constraints should be saved with only + operators
     ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2)
     ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0 variables
     ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of named elements
     ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint matrix as a matrix
     ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint right hand side
     ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint sense
     ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matrix with column-oriented encoding
     ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the order of the constraint matrix
     ERROR (test-model.R:78:3): bug 20160701: -x as a formula
     ERROR (test-model.R:85:3): model has a nice default output
     ERROR (test-model.R:109:3): multiplications in objective fun
     ERROR (test-model.R:122:3): devision in objective fun
     ERROR (test-solution.R:4:2): export single var to numeric
     ERROR (test-solution.R:18:3): get_solution: fails if variable not present
     ERROR (test-solution.R:86:3): export solutions to single value if all indexes bound
     ERROR (test-solution.R:101:3): export solutions to df in a model with more than one variable
     ERROR (test-solution.R:116:3): solution has a nice default output
     ERROR (test-solution.R:131:3): solution indexes should not be factors
    
     [ FAIL 20 | WARN 0 | SKIP 4 | PASS 469 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.8.0
Check: running tests for arch ‘x64’
Result: ERROR
     Running 'testthat.R' [8s]
    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
    
     > test_check("ompr")
     Loading required package: ompr
     -- ERROR (test-add-constraint.R:15:3): constraints should be saved with only + o
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-add-constraint.R:15:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x - y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-add-constraint.R:23:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., +x - y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-helpers.R:73:2
     2. \-ompr::add_constraint(., y - a * x[i] <= 1, i = 1:2)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-helpers.R:82:2
     2. \-ompr::add_constraint(., sum_expr(x[i], i = 1:2, i == 23) == 1)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-ompr:::add_constraint_internal()
     6. \-ompr:::normalize_expression(model, lhs_ast, envir)
     7. \-ompr:::bind_variables(model, expression, envir)
     8. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of name
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:100:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:109:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:119:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:127:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matri
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:135:4
     2. \-ompr::add_constraint(., x[i] + y[i] <= 1, i = 1:3)
     3. +-ompr::add_constraint_(...)
     4. \-ompr:::add_constraint_.optimization_model(...)
     5. \-base::apply(...)
     6. \-ompr:::FUN(newX[, i], ...)
     7. \-ompr:::add_constraint_internal(calling_env)
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model-api.R:211:4
     2. +-ompr::add_constraint(...)
     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)
    
     -- Skip (test-model-milp.R:141:3): small to mid sized models should work -------
     Reason: On CRAN
    
     -- Skip (test-model-milp.R:156:3): small to mid sized model should work #2 -----
     Reason: On CRAN
    
     -- ERROR (test-model.R:78:3): bug 20160701: -x as a formula --------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-testthat::expect_silent(...) test-model.R:78: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. +-`%>%`(...)
     10. +-ompr::set_objective(., -x + y, sense = "max")
     11. | \-ompr::set_objective_(...)
     12. \-ompr::add_constraint(., x + y <= 10)
     13. +-ompr::add_constraint_(...)
     14. \-ompr:::add_constraint_.optimization_model(...)
     15. \-ompr:::add_constraint_internal()
     16. \-ompr:::normalize_expression(model, lhs_ast, envir)
     17. \-ompr:::bind_variables(model, expression, envir)
     18. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:85:3): model has a nice default output ------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:85:2
     2. +-ompr::set_objective(., -x + y, sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:109:3): multiplications in objective fun ----------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:109:2
     2. +-ompr::set_objective(., 5 * (-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-model.R:122:3): devision in objective fun -----------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-model.R:122:2
     2. +-ompr::set_objective(., 5/(-x + y), sense = "max")
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 10)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- Skip (test-model.R:130:3): small to mid sized models should work ------------
     Reason: On CRAN
    
     -- Skip (test-model.R:145:3): small to mid sized model should work #2 ----------
     Reason: On CRAN
    
     -- ERROR (test-solution.R:4:2): export single var to numeric -------------------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:4:1
     2. +-ompr::set_objective(., x + y)
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 1)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:18:3): get_solution: fails if variable not present ---
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:18:2
     2. +-ompr::set_objective(., x + y)
     3. | \-ompr::set_objective_(...)
     4. \-ompr::add_constraint(., x + y <= 1)
     5. +-ompr::add_constraint_(...)
     6. \-ompr:::add_constraint_.optimization_model(...)
     7. \-ompr:::add_constraint_internal()
     8. \-ompr:::normalize_expression(model, lhs_ast, envir)
     9. \-ompr:::bind_variables(model, expression, envir)
     10. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:86:3): export solutions to single value if all indexes
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:86:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:101:3): export solutions to df in a model with more th
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:101:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:116:3): solution has a nice default output -----------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:116:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- ERROR (test-solution.R:131:3): solution indexes should not be factors -------
     Error: first argument has length > 1
     Backtrace:
     x
     1. +-`%>%`(...) test-solution.R:131:2
     2. \-ompr::set_objective(., sum_expr(x[i], i = 1:3))
     3. +-ompr::set_objective_(...)
     4. \-ompr:::set_objective_.optimization_model(...)
     5. \-ompr:::normalize_expression(model, obj_ast, expression$env)
     6. \-ompr:::bind_variables(model, expression, envir)
     7. \-base::exists(names(model$variables), calling_env)
    
     -- Skipped tests --------------------------------------------------------------
     * On CRAN (4)
    
     == testthat results ===========================================================
     ERROR (test-add-constraint.R:15:3): constraints should be saved with only + operators
     ERROR (test-add-constraint.R:23:3): constraints can have an unary + operator
     ERROR (test-helpers.R:73:3): bug 20161107 #103: bug in extract coefficient (2)
     ERROR (test-helpers.R:82:3): sum_expr returns 0 if filter expression yields 0 variables
     ERROR (test-model-api.R:100:5): extract_constraints(): returns a list of named elements
     ERROR (test-model-api.R:109:5): extract_constraints(): returns the constraint matrix as a matrix
     ERROR (test-model-api.R:119:5): extract_constraints(): returns the constraint right hand side
     ERROR (test-model-api.R:127:5): extract_constraints(): returns the constraint sense
     ERROR (test-model-api.R:135:5): extract_constraints(): returns a sparse Matrix with column-oriented encoding
     ERROR (test-model-api.R:211:5): variable_bounds(): returns the bounds in the order of the constraint matrix
     ERROR (test-model.R:78:3): bug 20160701: -x as a formula
     ERROR (test-model.R:85:3): model has a nice default output
     ERROR (test-model.R:109:3): multiplications in objective fun
     ERROR (test-model.R:122:3): devision in objective fun
     ERROR (test-solution.R:4:2): export single var to numeric
     ERROR (test-solution.R:18:3): get_solution: fails if variable not present
     ERROR (test-solution.R:86:3): export solutions to single value if all indexes bound
     ERROR (test-solution.R:101:3): export solutions to df in a model with more than one variable
     ERROR (test-solution.R:116:3): solution has a nice default output
     ERROR (test-solution.R:131:3): solution indexes should not be factors
    
     [ FAIL 20 | WARN 0 | SKIP 4 | PASS 469 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Package ompr.roi

Current CRAN status: ERROR: 5, OK: 7

Version: 0.8.0
Check: tests
Result: ERROR
     Running 'testthat.R' [5s/6s]
    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, glpk.
     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:
     x
     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:
     x
     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:
     x
     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:
     x
     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:
     x
     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:
     x
     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
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.8.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [4s/6s]
    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, glpk.
     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
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.8.0
Check: tests
Result: ERROR
     Running ‘testthat.R’
    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, glpk.
     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
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.8.0
Check: tests
Result: ERROR
     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
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.8.0
Check: tests
Result: ERROR
     Running 'testthat.R' [5s]
    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, glpk.
     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:
     x
     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:
     x
     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:
     x
     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:
     x
     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:
     x
     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:
     x
     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
Flavor: r-devel-windows-ix86+x86_64

Package rpicosat

Current CRAN status: OK: 12

Additional issues

clang-UBSAN

Package thankr

Current CRAN status: OK: 12