Last updated on 2025-10-29 09:53:47 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags | 
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.0.2 | 65.76 | 181.30 | 247.06 | NOTE | |
| r-devel-linux-x86_64-debian-gcc | 1.0.2 | 42.27 | 126.49 | 168.76 | NOTE | |
| r-devel-linux-x86_64-fedora-clang | 1.0.2 | 148.00 | 258.18 | 406.18 | NOTE | |
| r-devel-linux-x86_64-fedora-gcc | 1.0.2 | 281.00 | 140.82 | 421.82 | NOTE | |
| r-devel-windows-x86_64 | 1.0.2 | 67.00 | 118.00 | 185.00 | ERROR | |
| r-patched-linux-x86_64 | 1.0.2 | 66.43 | 171.53 | 237.96 | NOTE | |
| r-release-linux-x86_64 | 1.0.2 | 66.69 | 172.63 | 239.32 | NOTE | |
| r-release-macos-arm64 | 1.0.2 | 27.00 | 76.00 | 103.00 | NOTE | |
| r-release-macos-x86_64 | 1.0.2 | 44.00 | 120.00 | 164.00 | NOTE | |
| r-release-windows-x86_64 | 1.0.2 | 75.00 | 160.00 | 235.00 | ERROR | |
| r-oldrel-macos-arm64 | 1.0.2 | 25.00 | 51.00 | 76.00 | NOTE | |
| r-oldrel-macos-x86_64 | 1.0.2 | 30.00 | 77.00 | 107.00 | NOTE | |
| r-oldrel-windows-x86_64 | 1.0.2 | 89.00 | 200.00 | 289.00 | ERROR | 
Version: 1.0.2
Check: CRAN incoming feasibility
Result: NOTE
  Maintainer: ‘Eric Dunipace <edunipace@mail.harvard.edu>’
  
  The Description field contains
    Dunipace, Eric (2021) <arXiv:2109.01991>.  The package will build the
  Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 1.0.2
Check: DESCRIPTION meta-information
Result: NOTE
    Missing dependency on R >= 4.1.0 because package code uses the pipe
    |> or function shorthand \(...) syntax added in R 4.1.0.
    File(s) using such syntax:
      ‘cotOOP.R’ ‘utils.R’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
Version: 1.0.2
Check: examples
Result: ERROR
  Running examples in 'causalOT-Ex.R' failed
  The error most likely occurred in:
  
  > ### Name: Measure
  > ### Title: An R6 Class for setting up measures
  > ### Aliases: Measure
  > 
  > ### ** Examples
  > 
  > if(torch::torch_is_installed()) {
  + m <- Measure(x = matrix(0, 10, 2), adapt = "none")
  + print(m)
  + m$x
  + m$x <- matrix(1,10,2) # must have same dimensions
  + m$x
  + m$weights
  + m$weights <- 1:10/sum(1:10)
  + m$weights
  + 
  + # with gradients
  + m <- Measure(x = matrix(0, 10, 2), adapt = "weights")
  + m$requires_grad # TRUE
  + m$requires_grad <- "none" # turns off
  + m$requires_grad # FALSE
  + m$requires_grad <- "x"
  + m$requires_grad # TRUE
  + m <- Measure(matrix(0, 10, 2), adapt = "none")
  + m$grad # NULL
  + m <- Measure(matrix(0, 10, 2), adapt = "weights")
  + loss <- sum(m$weights * 1:10)
  + loss$backward()
  + m$grad
  + # note the weights gradient is on the log softmax scale
  + #and the first parameter is fixed for identifiability
  + m$grad <- rep(1,9)  
  + m$grad
  + }
Flavor: r-devel-windows-x86_64
Version: 1.0.2
Check: tests
Result: ERROR
    Running 'testthat.R' [3s]
  Running the tests in 'tests/testthat.R' failed.
  Complete output:
    > library(testthat)
    > library(causalOT)
    > 
    > test_check("causalOT")
Flavor: r-devel-windows-x86_64
Version: 1.0.2
Check: whether package can be installed
Result: WARN
  Found the following significant warnings:
    Warning: Torch libraries are installed but loading them caused a segfault.
  See 'd:/Rcompile/CRANpkg/local/4.5/causalOT.Rcheck/00install.out' for details.
  * used C++ compiler: 'g++.exe (GCC) 14.2.0'
Flavor: r-release-windows-x86_64
Version: 1.0.2
Check: dependencies in R code
Result: NOTE
  Warning: 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
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: S3 generic/method consistency
Result: WARN
  Warning: 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
  See section 'Generic functions and methods' in the 'Writing R
  Extensions' manual.
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: foreign function calls
Result: NOTE
  Warning: 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
  See chapter 'System and foreign language interfaces' in the 'Writing R
  Extensions' manual.
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: R code for possible problems
Result: NOTE
  Warning: 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
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: for code/documentation mismatches
Result: WARN
  Warning: 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
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: Rd \usage sections
Result: NOTE
  Warning: 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
  The \usage entries for S3 methods should use the \method markup and not
  their full name.
  See chapter 'Writing R documentation files' in the 'Writing R
  Extensions' manual.
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: examples
Result: ERROR
  Running examples in 'causalOT-Ex.R' failed
  The error most likely occurred in:
  
  > ### Name: Measure
  > ### Title: An R6 Class for setting up measures
  > ### Aliases: Measure
  > 
  > ### ** Examples
  > 
  > if(torch::torch_is_installed()) {
  + m <- Measure(x = matrix(0, 10, 2), adapt = "none")
  + print(m)
  + m$x
  + m$x <- matrix(1,10,2) # must have same dimensions
  + m$x
  + m$weights
  + m$weights <- 1:10/sum(1:10)
  + m$weights
  + 
  + # with gradients
  + m <- Measure(x = matrix(0, 10, 2), adapt = "weights")
  + m$requires_grad # TRUE
  + m$requires_grad <- "none" # turns off
  + m$requires_grad # FALSE
  + m$requires_grad <- "x"
  + m$requires_grad # TRUE
  + m <- Measure(matrix(0, 10, 2), adapt = "none")
  + m$grad # NULL
  + m <- Measure(matrix(0, 10, 2), adapt = "weights")
  + loss <- sum(m$weights * 1:10)
  + loss$backward()
  + m$grad
  + # note the weights gradient is on the log softmax scale
  + #and the first parameter is fixed for identifiability
  + m$grad <- rep(1,9)  
  + m$grad
  + }
  Warning: 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
  Error in cpp_cuda_is_available() : 
    Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
  Calls: Measure ... cuda_device_check -> <Anonymous> -> cpp_cuda_is_available
  Execution halted
Flavors: r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 1.0.2
Check: tests
Result: ERROR
    Running 'testthat.R' [26s]
  Running the tests in 'tests/testthat.R' failed.
  Complete output:
    > library(testthat)
    > library(causalOT)
    > 
    > test_check("causalOT")
    [ FAIL 22 | WARN 1 | SKIP 30 | PASS 123 ]
    
    ══ Skipped tests (30) ══════════════════════════════════════════════════════════
    • On CRAN (30): 'test-OTmethod.R:28:3', 'test-OTmethod.R:97:3',
      'test-OTmethod.R:195:3', 'test-OTmethod.R:246:3', 'test-OTmethod.R:295:3',
      'test-OTmethod.R:392:3', 'test-OTmethod.R:477:3', 'test-OTmethod.R:519:3',
      'test-OTmethod.R:566:3', 'test-PSIS.R:2:3', 'test-PSIS.R:34:3',
      'test-PSIS.R:66:3', 'test-barycentric_projection.R:3:3',
      'test-barycentric_projection.R:92:3', 'test-barycentric_projection.R:182:3',
      'test-costMethod.R:50:3', 'test-cotClass.R:2:3', 'test-cotClass.R:64:3',
      'test-cotClass.R:118:3', 'test-cotClass.R:188:3', 'test-cotClass.R:219:3',
      'test-cotClass.R:323:3', 'test-cotClass.R:366:3', 'test-cotOOP.R:2:3',
      'test-cotOOP.R:110:3', 'test-cotOOP.R:237:3', 'test-cotOOP.R:361:3',
      'test-estimate_effect.R:3:3', 'test-estimate_effect.R:77:3',
      'test-estimate_effect.R:135:3'
    
    ══ Failed tests ════════════════════════════════════════════════════════════════
    ── Error ('test-OTmethod.R:14:3'): OT object forms tensor ──────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-OTmethod.R:14:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. └─causalOT:::OT$new(...)
     10.   └─causalOT (local) initialize(...)
     11.     └─torch::cuda_is_available()
     12.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:74:3'): sinkhorn_loop runs, tensor ──────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:74:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:175:3'): sinkhorn_self runs, tensor ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:175:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:361:3'): sinkhorn_dist runs, tensor ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:361:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:454:3'): sinkhorn_loop runs, tensor ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:454:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-calc_weight.R:14:3'): calc_weight works ────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. └─causalOT::calc_weight(...) at test-calc_weight.R:14:3
      2.   └─causalOT:::cotProblem(data, estimand, method, options)
      3.     └─causalOT:::gridSearch(data, estimand, method, options)
      4.       ├─methods::new(...)
      5.       │ ├─methods::initialize(value, ...)
      6.       │ └─methods::initialize(value, ...)
      7.       └─causalOT:::gridSearch(data, estimand = "ATE.C", method, options)
      8.         └─causalOT:::balanceDistributions(...)
      9.           ├─base::do.call(cotOptions, options)
     10.           └─causalOT (local) `<fn>`(NULL)
     11.             └─causalOT:::cuda_device_check(device)
     12.               └─torch::cuda_is_available()
     13.                 └─torch:::cpp_cuda_is_available()
    ── Error ('test-costMethod.R:15:3'): costTensor class forms ────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_torch_float64()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-costMethod.R:15:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. └─causalOT:::costTensor$new(x = x, y = y, p = 2L)
     10.   └─causalOT (local) initialize(...)
     11.     └─self$fun(x, y, p)
     12.       ├─torch::torch_tensor(x1, dtype = torch::torch_double())
     13.       │ └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
     14.       │   └─methods$initialize(NULL, NULL, ...)
     15.       │     └─torch:::torch_tensor_cpp(...)
     16.       └─torch::torch_double()
     17.         ├─torch_dtype$new(cpp_torch_float64())
     18.         │ └─methods$initialize(NULL, NULL, ...)
     19.         └─torch:::cpp_torch_float64()
    ── Error ('test-costMethod.R:115:3'): cost function forms appropriate classes ──
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_torch_float64()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-costMethod.R:115:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. └─causalOT:::cost(x = x, y = y, p = 2L)
     10.   └─costTensor$new(x, y, p = p, cost_function = cost_function)
     11.     └─causalOT (local) initialize(...)
     12.       └─self$fun(x, y, p)
     13.         ├─torch::torch_tensor(x1, dtype = torch::torch_double())
     14.         │ └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
     15.         │   └─methods$initialize(NULL, NULL, ...)
     16.         │     └─torch:::torch_tensor_cpp(...)
     17.         └─torch::torch_double()
     18.           ├─torch_dtype$new(cpp_torch_float64())
     19.           │ └─methods$initialize(NULL, NULL, ...)
     20.           └─torch:::cpp_torch_float64()
    ── Error ('test-cotProblem.R:123:3'): cotProblem COT ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-cotProblem.R:123:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. ├─testthat::expect_warning(...)
     10. │ └─testthat:::quasi_capture(...)
     11. │   ├─testthat (local) .capture(...)
     12. │   │ └─base::withCallingHandlers(...)
     13. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     14. └─causalOT:::cotProblem(...)
     15.   └─causalOT:::gridSearch(data, estimand, method, options)
     16.     └─causalOT:::balanceDistributions(...)
     17.       ├─base::do.call(cotOptions, options)
     18.       └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     19.         └─causalOT:::cuda_device_check(device)
     20.           └─torch::cuda_is_available()
     21.             └─torch:::cpp_cuda_is_available()
    ── Error ('test-cotProblem.R:146:3'): cotProblem NNM ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_warning(...) at test-cotProblem.R:146:3
      2. │ └─testthat:::quasi_capture(...)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ └─base::withCallingHandlers(...)
      5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      6. └─causalOT:::cotProblem(...)
      7.   └─causalOT:::gridSearch(data, estimand, method, options)
      8.     └─causalOT:::balanceDistributions(...)
      9.       ├─base::do.call(cotOptions, options)
     10.       └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     11.         └─causalOT:::cuda_device_check(device)
     12.           └─torch::cuda_is_available()
     13.             └─torch:::cpp_cuda_is_available()
    ── Error ('test-dual_opts.R:10:3'): test forward functions ─────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::Measure(x, target.values = colMeans(z), adapt = "weights") at test-dual_opts.R:10:3
     2.   └─Measure_$new(...)
     3.     └─causalOT (local) initialize(...)
     4.       └─causalOT:::cuda_device_check(device)
     5.         └─torch::cuda_is_available()
     6.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-dual_opts.R:159:3'): dual nn modules work as expected ──────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::Measure(x, target.values = colMeans(z), adapt = "weights") at test-dual_opts.R:159:3
     2.   └─Measure_$new(...)
     3.     └─causalOT (local) initialize(...)
     4.       └─causalOT:::cuda_device_check(device)
     5.         └─torch::cuda_is_available()
     6.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-dual_opts.R:294:3'): training function works for dual optimizer ──
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::Measure(x, target.values = colMeans(z), adapt = "weights") at test-dual_opts.R:294:3
     2.   └─Measure_$new(...)
     3.     └─causalOT (local) initialize(...)
     4.       └─causalOT:::cuda_device_check(device)
     5.         └─torch::cuda_is_available()
     6.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:210:3'): estimate effect works lm, ATT ───────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:210:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:372:3'): estimate effect works lm, ATC ───────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:372:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:523:3'): estimate effect works lm, ATE ───────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:523:3
      2.   └─causalOT:::cotProblem(data, estimand, method, options)
      3.     └─causalOT:::gridSearch(data, estimand, method, options)
      4.       ├─methods::new(...)
      5.       │ ├─methods::initialize(value, ...)
      6.       │ └─methods::initialize(value, ...)
      7.       └─causalOT:::gridSearch(data, estimand = "ATE.C", method, options)
      8.         └─causalOT:::balanceDistributions(...)
      9.           ├─base::do.call(cotOptions, options)
     10.           └─causalOT (local) `<fn>`(NULL)
     11.             └─causalOT:::cuda_device_check(device)
     12.               └─torch::cuda_is_available()
     13.                 └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:686:3'): ATT give proper var ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:686:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:730:3'): ATT give proper var lm ──────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:730:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:775:3'): ATC give proper var ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:775:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:819:3'): ATC give proper var lm ──────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:819:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-gridSearch.R:119:3'): gridSearch COT ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_warning(...) at test-gridSearch.R:119:3
      2. │ └─testthat:::quasi_capture(...)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ └─base::withCallingHandlers(...)
      5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      6. └─causalOT:::gridSearch(...)
      7.   └─causalOT:::balanceDistributions(...)
      8.     ├─base::do.call(cotOptions, options)
      9.     └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     10.       └─causalOT:::cuda_device_check(device)
     11.         └─torch::cuda_is_available()
     12.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-gridSearch.R:168:3'): gridSearch NNM ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_warning(...) at test-gridSearch.R:168:3
      2. │ └─testthat:::quasi_capture(...)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ └─base::withCallingHandlers(...)
      5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      6. └─causalOT:::gridSearch(...)
      7.   └─causalOT:::balanceDistributions(...)
      8.     ├─base::do.call(cotOptions, options)
      9.     └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     10.       └─causalOT:::cuda_device_check(device)
     11.         └─torch::cuda_is_available()
     12.           └─torch:::cpp_cuda_is_available()
    
    [ FAIL 22 | WARN 1 | SKIP 30 | PASS 123 ]
    Error: Test failures
    Execution halted
Flavor: r-release-windows-x86_64
Version: 1.0.2
Check: installed package size
Result: NOTE
    installed size is  7.5Mb
    sub-directories of 1Mb or more:
      R      2.3Mb
      libs   4.5Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Version: 1.0.2
Check: package dependencies
Result: NOTE
  Package suggested but not available for checking: 'rkeops'
Flavor: r-oldrel-windows-x86_64
Version: 1.0.2
Check: whether package can be installed
Result: WARN
  Found the following significant warnings:
    Warning: Torch libraries are installed but loading them caused a segfault.
  See 'd:/Rcompile/CRANpkg/local/4.4/causalOT.Rcheck/00install.out' for details.
  * used C++ compiler: 'g++.exe (GCC) 13.3.0'
Flavor: r-oldrel-windows-x86_64
Version: 1.0.2
Check: tests
Result: ERROR
    Running 'testthat.R' [39s]
  Running the tests in 'tests/testthat.R' failed.
  Complete output:
    > library(testthat)
    > library(causalOT)
    > 
    > test_check("causalOT")
    [ FAIL 22 | WARN 1 | SKIP 30 | PASS 123 ]
    
    ══ Skipped tests (30) ══════════════════════════════════════════════════════════
    • On CRAN (30): 'test-OTmethod.R:28:3', 'test-OTmethod.R:97:3',
      'test-OTmethod.R:195:3', 'test-OTmethod.R:246:3', 'test-OTmethod.R:295:3',
      'test-OTmethod.R:392:3', 'test-OTmethod.R:477:3', 'test-OTmethod.R:519:3',
      'test-OTmethod.R:566:3', 'test-PSIS.R:2:3', 'test-PSIS.R:34:3',
      'test-PSIS.R:66:3', 'test-barycentric_projection.R:3:3',
      'test-barycentric_projection.R:92:3', 'test-barycentric_projection.R:182:3',
      'test-costMethod.R:50:3', 'test-cotClass.R:2:3', 'test-cotClass.R:64:3',
      'test-cotClass.R:118:3', 'test-cotClass.R:188:3', 'test-cotClass.R:219:3',
      'test-cotClass.R:323:3', 'test-cotClass.R:366:3', 'test-cotOOP.R:2:3',
      'test-cotOOP.R:110:3', 'test-cotOOP.R:237:3', 'test-cotOOP.R:361:3',
      'test-estimate_effect.R:3:3', 'test-estimate_effect.R:77:3',
      'test-estimate_effect.R:135:3'
    
    ══ Failed tests ════════════════════════════════════════════════════════════════
    ── Error ('test-OTmethod.R:14:3'): OT object forms tensor ──────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-OTmethod.R:14:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. └─causalOT:::OT$new(...)
     10.   └─causalOT (local) initialize(...)
     11.     └─torch::cuda_is_available()
     12.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:74:3'): sinkhorn_loop runs, tensor ──────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:74:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:175:3'): sinkhorn_self runs, tensor ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:175:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:361:3'): sinkhorn_dist runs, tensor ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:361:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-OTmethod.R:454:3'): sinkhorn_loop runs, tensor ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT:::OT$new(...) at test-OTmethod.R:454:3
     2.   └─causalOT (local) initialize(...)
     3.     └─torch::cuda_is_available()
     4.       └─torch:::cpp_cuda_is_available()
    ── Error ('test-calc_weight.R:14:3'): calc_weight works ────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. └─causalOT::calc_weight(...) at test-calc_weight.R:14:3
      2.   └─causalOT:::cotProblem(data, estimand, method, options)
      3.     └─causalOT:::gridSearch(data, estimand, method, options)
      4.       ├─methods::new(...)
      5.       │ ├─methods::initialize(value, ...)
      6.       │ └─methods::initialize(value, ...)
      7.       └─causalOT:::gridSearch(data, estimand = "ATE.C", method, options)
      8.         └─causalOT:::balanceDistributions(...)
      9.           ├─base::do.call(cotOptions, options)
     10.           └─causalOT (local) `<fn>`(NULL)
     11.             └─causalOT:::cuda_device_check(device)
     12.               └─torch::cuda_is_available()
     13.                 └─torch:::cpp_cuda_is_available()
    ── Error ('test-costMethod.R:15:3'): costTensor class forms ────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_torch_float64()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-costMethod.R:15:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. └─causalOT:::costTensor$new(x = x, y = y, p = 2L)
     10.   └─causalOT (local) initialize(...)
     11.     └─self$fun(x, y, p)
     12.       ├─torch::torch_tensor(x1, dtype = torch::torch_double())
     13.       │ └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
     14.       │   └─methods$initialize(NULL, NULL, ...)
     15.       │     └─torch:::torch_tensor_cpp(...)
     16.       └─torch::torch_double()
     17.         ├─torch_dtype$new(cpp_torch_float64())
     18.         │ └─methods$initialize(NULL, NULL, ...)
     19.         └─torch:::cpp_torch_float64()
    ── Error ('test-costMethod.R:115:3'): cost function forms appropriate classes ──
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_torch_float64()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-costMethod.R:115:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. └─causalOT:::cost(x = x, y = y, p = 2L)
     10.   └─costTensor$new(x, y, p = p, cost_function = cost_function)
     11.     └─causalOT (local) initialize(...)
     12.       └─self$fun(x, y, p)
     13.         ├─torch::torch_tensor(x1, dtype = torch::torch_double())
     14.         │ └─Tensor$new(data, dtype, device, requires_grad, pin_memory)
     15.         │   └─methods$initialize(NULL, NULL, ...)
     16.         │     └─torch:::torch_tensor_cpp(...)
     17.         └─torch::torch_double()
     18.           ├─torch_dtype$new(cpp_torch_float64())
     19.           │ └─methods$initialize(NULL, NULL, ...)
     20.           └─torch:::cpp_torch_float64()
    ── Error ('test-cotProblem.R:123:3'): cotProblem COT ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_silent(...) at test-cotProblem.R:123:3
      2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ ├─withr::with_output_sink(...)
      5. │   │ │ └─base::force(code)
      6. │   │ ├─base::withCallingHandlers(...)
      7. │   │ └─base::withVisible(code)
      8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      9. ├─testthat::expect_warning(...)
     10. │ └─testthat:::quasi_capture(...)
     11. │   ├─testthat (local) .capture(...)
     12. │   │ └─base::withCallingHandlers(...)
     13. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
     14. └─causalOT:::cotProblem(...)
     15.   └─causalOT:::gridSearch(data, estimand, method, options)
     16.     └─causalOT:::balanceDistributions(...)
     17.       ├─base::do.call(cotOptions, options)
     18.       └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     19.         └─causalOT:::cuda_device_check(device)
     20.           └─torch::cuda_is_available()
     21.             └─torch:::cpp_cuda_is_available()
    ── Error ('test-cotProblem.R:146:3'): cotProblem NNM ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_warning(...) at test-cotProblem.R:146:3
      2. │ └─testthat:::quasi_capture(...)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ └─base::withCallingHandlers(...)
      5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      6. └─causalOT:::cotProblem(...)
      7.   └─causalOT:::gridSearch(data, estimand, method, options)
      8.     └─causalOT:::balanceDistributions(...)
      9.       ├─base::do.call(cotOptions, options)
     10.       └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     11.         └─causalOT:::cuda_device_check(device)
     12.           └─torch::cuda_is_available()
     13.             └─torch:::cpp_cuda_is_available()
    ── Error ('test-dual_opts.R:10:3'): test forward functions ─────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::Measure(x, target.values = colMeans(z), adapt = "weights") at test-dual_opts.R:10:3
     2.   └─Measure_$new(...)
     3.     └─causalOT (local) initialize(...)
     4.       └─causalOT:::cuda_device_check(device)
     5.         └─torch::cuda_is_available()
     6.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-dual_opts.R:159:3'): dual nn modules work as expected ──────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::Measure(x, target.values = colMeans(z), adapt = "weights") at test-dual_opts.R:159:3
     2.   └─Measure_$new(...)
     3.     └─causalOT (local) initialize(...)
     4.       └─causalOT:::cuda_device_check(device)
     5.         └─torch::cuda_is_available()
     6.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-dual_opts.R:294:3'): training function works for dual optimizer ──
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::Measure(x, target.values = colMeans(z), adapt = "weights") at test-dual_opts.R:294:3
     2.   └─Measure_$new(...)
     3.     └─causalOT (local) initialize(...)
     4.       └─causalOT:::cuda_device_check(device)
     5.         └─torch::cuda_is_available()
     6.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:210:3'): estimate effect works lm, ATT ───────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:210:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:372:3'): estimate effect works lm, ATC ───────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:372:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:523:3'): estimate effect works lm, ATE ───────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:523:3
      2.   └─causalOT:::cotProblem(data, estimand, method, options)
      3.     └─causalOT:::gridSearch(data, estimand, method, options)
      4.       ├─methods::new(...)
      5.       │ ├─methods::initialize(value, ...)
      6.       │ └─methods::initialize(value, ...)
      7.       └─causalOT:::gridSearch(data, estimand = "ATE.C", method, options)
      8.         └─causalOT:::balanceDistributions(...)
      9.           ├─base::do.call(cotOptions, options)
     10.           └─causalOT (local) `<fn>`(NULL)
     11.             └─causalOT:::cuda_device_check(device)
     12.               └─torch::cuda_is_available()
     13.                 └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:686:3'): ATT give proper var ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:686:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:730:3'): ATT give proper var lm ──────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:730:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:775:3'): ATC give proper var ─────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:775:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-estimate_effect.R:819:3'): ATC give proper var lm ──────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
        ▆
     1. └─causalOT::calc_weight(original, estimand = estimand, method = "NNM") at test-estimate_effect.R:819:3
     2.   └─causalOT:::cotProblem(data, estimand, method, options)
     3.     └─causalOT:::gridSearch(data, estimand, method, options)
     4.       └─causalOT:::balanceDistributions(...)
     5.         ├─base::do.call(cotOptions, options)
     6.         └─causalOT (local) `<fn>`(NULL)
     7.           └─causalOT:::cuda_device_check(device)
     8.             └─torch::cuda_is_available()
     9.               └─torch:::cpp_cuda_is_available()
    ── Error ('test-gridSearch.R:119:3'): gridSearch COT ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_warning(...) at test-gridSearch.R:119:3
      2. │ └─testthat:::quasi_capture(...)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ └─base::withCallingHandlers(...)
      5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      6. └─causalOT:::gridSearch(...)
      7.   └─causalOT:::balanceDistributions(...)
      8.     ├─base::do.call(cotOptions, options)
      9.     └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     10.       └─causalOT:::cuda_device_check(device)
     11.         └─torch::cuda_is_available()
     12.           └─torch:::cpp_cuda_is_available()
    ── Error ('test-gridSearch.R:168:3'): gridSearch NNM ───────────────────────────
    <std::runtime_error/C++Error/error/condition>
    Error in `cpp_cuda_is_available()`: Lantern is not loaded. Please use `install_torch()` to install additional dependencies.
    Backtrace:
         ▆
      1. ├─testthat::expect_warning(...) at test-gridSearch.R:168:3
      2. │ └─testthat:::quasi_capture(...)
      3. │   ├─testthat (local) .capture(...)
      4. │   │ └─base::withCallingHandlers(...)
      5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
      6. └─causalOT:::gridSearch(...)
      7.   └─causalOT:::balanceDistributions(...)
      8.     ├─base::do.call(cotOptions, options)
      9.     └─causalOT (local) `<fn>`(niter = 2L, nboot = 2, debias = TRUE, torch.optimizer = `<optm_lbf>`)
     10.       └─causalOT:::cuda_device_check(device)
     11.         └─torch::cuda_is_available()
     12.           └─torch:::cpp_cuda_is_available()
    
    [ FAIL 22 | WARN 1 | SKIP 30 | PASS 123 ]
    Error: Test failures
    Execution halted
Flavor: r-oldrel-windows-x86_64