Running 'testthat.R' [7s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(unfold)
  Warning message:
  Torch libraries are installed but loading them caused a segfault.
  Please reinstall torch with `install_torch(reinstall = TRUE)`
  You can disable this check by setting `TORCH_VERIFY_LOAD` to "FALSE"
  ! callr subprocess failed: could not start R, exited with non-zero status, has
  crashed or was killed 
  > 
  > test_check("unfold")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-main.R:27:3'): unfold returns expected object structure ────────
  <std::runtime_error/C++Error/error/condition>
  Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      ▆
   1. └─unfold::unfold(...) at test-main.R:27:3
   2.   └─torch::torch_tensor(reframed_array)
   3.     └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
   4.       └─methods$initialize(NULL, NULL, ...)
   5.         └─torch:::torch_tensor_cpp(...)
  ── Error ('test-main.R:43:3'): predictive functions exist and are callable ─────
  <std::runtime_error/C++Error/error/condition>
  Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      ▆
   1. └─unfold::unfold(...) at test-main.R:43:3
   2.   └─torch::torch_tensor(reframed_array)
   3.     └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
   4.       └─methods$initialize(NULL, NULL, ...)
   5.         └─torch:::torch_tensor_cpp(...)
  ── Error ('test-main.R:57:3'): unfold is reproducible with fixed seed (within tolerance) ──
  <std::runtime_error/C++Error/error/condition>
  Error in `torch_tensor_cpp(data, dtype, device, requires_grad, pin_memory)`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Backtrace:
      ▆
   1. └─unfold::unfold(...) at test-main.R:57:3
   2.   └─torch::torch_tensor(reframed_array)
   3.     └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
   4.       └─methods$initialize(NULL, NULL, ...)
   5.         └─torch:::torch_tensor_cpp(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted