Running ‘testthat.R’ [165s/255s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(bundle)
  > 
  > test_check("bundle")
  Loading required package: ggplot2
  Loading required package: lattice
  Loading required package: recipes
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  
  Attaching package: 'xgboost'
  
  The following object is masked from 'package:dplyr':
  
      slice
  
  [1]	train-logloss:0.233376 
  [2]	train-logloss:0.136658 
  [ FAIL 1 | WARN 0 | SKIP 8 | PASS 41 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • !interactive() is TRUE (5): 'test_bundle_h2o.R:2:3',
    'test_bundle_h2o.R:136:3', 'test_bundle_h2o.R:283:3',
    'test_bundle_h2o.R:427:3', 'test_bundle_h2o.R:563:3'
  • On CRAN (1): 'test_bundle_torch.R:6:3'
  • is_tf_available() is not TRUE (2): 'test_bundle_embed.R:7:3',
    'test_bundle_workflows.R:138:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_bundle_keras.R:4:3'): bundling + unbundling keras fits ─────────
  <cmdError/error/condition>
  Error in `system2(command = python, args = shQuote(script), stdout = TRUE, 
      stderr = FALSE)`: error in running command
  Backtrace:
       ▆
    1. ├─testthat::skip_if(is.null(tensorflow::tf_version())) at test_bundle_keras.R:4:2
    2. │ └─base::isTRUE(condition)
    3. └─tensorflow::tf_version()
    4.   └─tensorflow::tf_config()
    5.     └─reticulate::py_config()
    6.       └─reticulate:::ensure_python_initialized()
    7.         └─reticulate:::initialize_python()
    8.           └─(function() {...
    9.             └─reticulate::py_discover_config(required_module, use_environment)
   10.               └─reticulate:::python_config(...)
   11.                 └─reticulate:::python_config_impl(python)
   12.                   └─base::system2(...)
  
  [ FAIL 1 | WARN 0 | SKIP 8 | PASS 41 ]
  Error: Test failures
  Execution halted