Running ‘testthat.R’ [6s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vivo)
  > 
  > test_check("vivo")
  Preparation of a new explainer is initiated
    -> model label       :  randomForest  ([33mdefault[39m)
    -> data              :  9000  rows  4  cols 
    -> target variable   :  9000  values 
    -> predict function  :  yhat.randomForest  will be used ([33mdefault[39m)
    -> predicted values  :  numerical, min =  2100.243 , mean =  3513.918 , max =  5418.94  
    -> residual function :  difference between y and yhat ([33mdefault[39m)
    -> residuals         :  numerical, min =  -1263.538 , mean =  -2.394837 , max =  2102.631  
  [32mA new explainer has been created![39m
  ── 1. Error: (unknown) (@test_measure.R#3)  ────────────────────────────────────
  'calculate_variable_split' is not an exported object from 'namespace:ingredients'
  1: source("objects_for_tests.R") at testthat/test_measure.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: ingredients::calculate_variable_split
  6: getExportedValue(pkg, name)
  7: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  Preparation of a new explainer is initiated
    -> model label       :  randomForest  ([33mdefault[39m)
    -> data              :  9000  rows  4  cols 
    -> target variable   :  9000  values 
    -> predict function  :  yhat.randomForest  will be used ([33mdefault[39m)
    -> predicted values  :  numerical, min =  2128.594 , mean =  3516.742 , max =  5327.883  
    -> residual function :  difference between y and yhat ([33mdefault[39m)
    -> residuals         :  numerical, min =  -1190.952 , mean =  -5.218169 , max =  2138.89  
  [32mA new explainer has been created![39m
  ── 2. Error: (unknown) (@test_plot.R#3)  ───────────────────────────────────────
  'calculate_variable_split' is not an exported object from 'namespace:ingredients'
  1: source("objects_for_tests.R") at testthat/test_plot.R:3
  2: withVisible(eval(ei, envir))
  3: eval(ei, envir)
  4: eval(ei, envir)
  5: ingredients::calculate_variable_split
  6: getExportedValue(pkg, name)
  7: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: (unknown) (@test_measure.R#3) 
  2. Error: (unknown) (@test_plot.R#3) 
  
  Error: testthat unit tests failed
  Execution halted