Running 'testthat.R' [10s/12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # load packages
  > library(testthat)
  > library(prioriactions)
  > 
  > # load solver packages
  > require(gurobi)
  Loading required package: gurobi
  Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'gurobi'
  > require(Rsymphony)
  Loading required package: Rsymphony
  > 
  > test_check("prioriactions")
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  Starting Preprocessing...
  Preprocessing finished...
   	 constraints removed: 12
  	 variables fixed: 5
  	 variables aggregated: 5
  
  Solving...
  
  
  ****************************************************
  * Optimal Solution Found                           *
  ****************************************************
  
  
  Solution Found: Node 0, Level 0
  Solution Cost: 738.0000000000
  == Skipped tests ===============================================================
  * On CRAN (16)
  
  == Failed tests ================================================================
  -- Error (test_presolve.R:91:3): testing maximize Benefits ---------------------
  Error in `if (params$budget < sum(costs_actions) + costs_units) {
      warning("Infeasible model. There is not enough budget to achieve the actions required (lock-in)", 
          call. = FALSE, immediate. = TRUE)
      warning(paste0("The budget will be set as the sum of the minimum costs to achieve the required actions: ", 
          sum(costs_actions) + costs_units), call. = FALSE, immediate. = TRUE)
      return(sum(costs_actions) + costs_units + 10^(-1))
  } else {
      return(params$budget)
  }`: missing value where TRUE/FALSE needed
  Backtrace:
      x
   1. +-base::suppressWarnings(problem(d, budget = 0.1, model_type = "maximizeBenefits")) test_presolve.R:91:2
   2. | \-base::withCallingHandlers(...)
   3. \-prioriactions::problem(d, budget = 0.1, model_type = "maximizeBenefits")
   4.   +-prioriactions:::presolve(x, model_type = model_type, budget = budget)
   5.   \-prioriactions:::presolve.Data(x, model_type = model_type, budget = budget)
  
  [ FAIL 1 | WARN 0 | SKIP 16 | PASS 123 ]
  Error: Test failures
  Execution halted