Running ‘testthat.R’ [8s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(olsrr)
  
  Attaching package: 'olsrr'
  
  The following object is masked from 'package:datasets':
  
      rivers
  
  > 
  > test_check("olsrr")
  ── 1. Error: all subsets selection output matches the expected result (@test-all
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: ols_step_all_possible(model) at testthat/test-all-possible.R:5
  2: ols_step_all_possible.default(model)
  3: allpos_helper(model)
  4: ols_regress(paste(response, "~", paste(predictors, collapse = " + ")), data = data)
  5: ols_regress.default(paste(response, "~", paste(predictors, collapse = " + ")), data = data)
  6: check_data(data)
  7: check_tibble(data)
  8: qassert(null.ok, "B1")
  
  # A tibble: 3 x 6
    Index     N Predictors `R-Square` `Adj. R-Square` `Mallow's Cp`
    <int> <int>      <chr>      <chr>           <chr>         <chr>
  1     1     1       disp    0.71834         0.70895       4.44379
  2     2     1         hp    0.60244         0.58919      17.79491
  3     3     2    disp hp    0.74824         0.73088       3.00000
   *** caught segfault ***
  address 40c23d51, cause 'memory not mapped'
  
  Traceback:
   1: qassert(null.ok, "B1")
   2: check_tibble(data)
   3: check_data(data)
   4: ols_regress.default(paste(response, "~", paste(predictors, collapse = " + ")),     data = data)
   5: ols_regress(paste(response, "~", paste(predictors, collapse = " + ")),     data = data)
   6: allpos_helper(model)
   7: ols_step_all_possible.default(model)
   8: ols_step_all_possible(model)
   9: print(ols_step_all_possible(model))
  10: eval_bare(get_expr(quo), get_env(quo))
  11: withVisible(code)
  12: force(code)
  13: withr::with_output_sink(temp, withVisible(code))
  14: eval_with_output(code, print = print, width = width)
  15: capture_output_lines(code, print, width = width)
  16: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  17: quasi_capture(enquo(object), capture_output, label = label)
  18: expect_output(print(ols_step_all_possible(model)), x)
  19: eval(code, test_env)
  20: eval(code, test_env)
  21: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  25: doTryCatch(return(expr), name, parentenv, handler)
  26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  27: tryCatchList(expr, classes, parentenv, handlers)
  28: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  29: test_code(desc, code, env = parent.frame())
  30: test_that("output from all subsets regression is as expected",     {        x <- cat("# A tibble: 3 x 6\n  Index     N Predictors `R-Square` `Adj. R-Square` `Mallow's Cp`\n  <int> <int>      <chr>      <chr>           <chr>         <chr>\n1     1     1       disp    0.71834         0.70895       4.44379\n2     2     1         hp    0.60244         0.58919      17.79491\n3     3     2    disp hp    0.74824         0.73088       3.00000")        model <- lm(mpg ~ disp + hp, data = mtcars)        expect_output(print(ols_step_all_possible(model)), x)    })
  31: eval(code, test_env)
  32: eval(code, test_env)
  33: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  34: doTryCatch(return(expr), name, parentenv, handler)
  35: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  36: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  37: doTryCatch(return(expr), name, parentenv, handler)
  38: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  39: tryCatchList(expr, classes, parentenv, handlers)
  40: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  41: test_code(NULL, exprs, env)
  42: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  43: force(code)
  44: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  45: FUN(X[[i]], ...)
  46: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  47: force(code)
  48: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  49: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  50: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  51: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  52: test_check("olsrr")
  An irrecoverable exception occurred. R is aborting now ...