tests/testthat/helper.R

# Copied check from `skip_on_cran`
# https://github.com/r-lib/testthat/blob/aef7fe20f8f1a4ccd183a544eace0c35f281bc4b/R/skip.R#L129-L135
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
  tryCatch({
    iai:::julia_eval("IAI.IAIBase.disable_progress_bar()")
  }, error = function(e) {
    iai:::julia_eval("IAI.OptimalTrees.disable_progress_bar()")
  })
}

Try the iai package in your browser

Any scripts or data that you put into this service are public.

iai documentation built on July 9, 2023, 5:41 p.m.