diff --git a/R/JaBbA.R b/R/JaBbA.R index b6d18a2..733027f 100755 --- a/R/JaBbA.R +++ b/R/JaBbA.R @@ -55,8 +55,13 @@ low.count=high.count=seg=chromosome=alpha_high=alpha_low=beta_high=beta_low=pred jmessage("${CPLEX_DIR}/cplex/[(include)|(lib)] do not both exist") } - library(gGnome) - gGnome:::testOptimizationFunction() + if (!requireNamespace("gurobi", quietly = TRUE)) { + jmessage("Gurobi is not installed! REMEMBER: You need to have either CPLEX or Gurobi!") + + } else { + library(gGnome) + gGnome:::testOptimizationFunction() + } invisible() }