Running ‘testthat.R’ [26s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(survivalmodels)
  > 
  > test_check("survivalmodels")
  ── 1. Error: silent (@test_dnnsurv.R#5)  ───────────────────────────────────────
  Error 1 occurred running /usr/bin/python Illegal seek
  Backtrace:
    1. testthat::expect_silent(...)
    9. survivalmodels::dnnsurv(...)
   10. keras::keras_model_sequential()
   12. reticulate:::`$.python.builtin.module`(keras, "models")
   13. reticulate:::py_resolve_module_proxy(x)
   14. keras:::on_error(result)
   16. tensorflow::tf_config()
   17. reticulate::py_config()
   18. reticulate:::ensure_python_initialized()
   19. reticulate:::initialize_python(required_module, use_environment)
   20. reticulate::py_discover_config(required_module, use_environment)
   21. reticulate:::python_config(python_version, required_module, python_versions)
  
  ── 2. Error: custom (@test_dnnsurv.R#16)  ──────────────────────────────────────
  Error 1 occurred running /usr/bin/python Illegal seek
  Backtrace:
    1. testthat::expect_silent(...)
   10. survivalmodels::build_keras_net(5L, 1L)
   11. keras::keras_model_sequential()
   13. reticulate:::`$.python.builtin.module`(keras, "models")
   14. reticulate:::py_resolve_module_proxy(x)
   15. reticulate::py_config_error_message(...)
   16. reticulate::py_config()
   17. reticulate:::ensure_python_initialized()
   18. reticulate:::initialize_python(required_module, use_environment)
   19. reticulate::py_discover_config(required_module, use_environment)
   20. reticulate:::python_config(python_version, required_module, python_versions)
  
  ── 3. Error: early stopping (@test_dnnsurv.R#22)  ──────────────────────────────
  Error 1 occurred running /usr/bin/python Illegal seek
  Backtrace:
    1. testthat::expect_silent(...)
    9. survivalmodels::dnnsurv(...)
   10. keras::keras_model_sequential()
   12. reticulate:::`$.python.builtin.module`(keras, "models")
   13. reticulate:::py_resolve_module_proxy(x)
   14. reticulate::py_config_error_message(...)
   15. reticulate::py_config()
   16. reticulate:::ensure_python_initialized()
   17. reticulate:::initialize_python(required_module, use_environment)
   18. reticulate::py_discover_config(required_module, use_environment)
   19. reticulate:::python_config(python_version, required_module, python_versions)
  
  ── 4. Error: predict (@test_dnnsurv.R#27)  ─────────────────────────────────────
  Error 1 occurred running /usr/bin/python Illegal seek
  Backtrace:
    1. survivalmodels::dnnsurv(...)
    2. keras::keras_model_sequential()
    4. reticulate:::`$.python.builtin.module`(keras, "models")
    5. reticulate:::py_resolve_module_proxy(x)
    6. reticulate::py_config_error_message(...)
    7. reticulate::py_config()
    8. reticulate:::ensure_python_initialized()
    9. reticulate:::initialize_python(required_module, use_environment)
   10. reticulate::py_discover_config(required_module, use_environment)
   11. reticulate:::python_config(python_version, required_module, python_versions)
  
  ── 5. Error: get_keras_optimizer (@test_keras.R#5)  ────────────────────────────
  Error 1 occurred running /usr/bin/python Illegal seek
  Backtrace:
    1. testthat::expect_is(get_keras_optimizer("adadelta"), "keras.optimizer_v2.adadelta.Adadelta")
    4. survivalmodels::get_keras_optimizer("adadelta")
    5. keras::optimizer_adadelta()
    6. keras:::resolve_epsilon(epsilon)
    7. keras:::keras_version()
    9. reticulate:::`$.python.builtin.module`(keras, "__version__")
   10. reticulate:::py_resolve_module_proxy(x)
   11. reticulate::py_config_error_message(...)
   12. reticulate::py_config()
   13. reticulate:::ensure_python_initialized()
   14. reticulate:::initialize_python(required_module, use_environment)
   15. reticulate::py_discover_config(required_module, use_environment)
   16. reticulate:::python_config(python_version, required_module, python_versions)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 25 | SKIPPED: 6 | WARNINGS: 10 | FAILED: 5 ]
  1. Error: silent (@test_dnnsurv.R#5) 
  2. Error: custom (@test_dnnsurv.R#16) 
  3. Error: early stopping (@test_dnnsurv.R#22) 
  4. Error: predict (@test_dnnsurv.R#27) 
  5. Error: get_keras_optimizer (@test_keras.R#5) 
  
  Error: testthat unit tests failed
  Execution halted