CRAN Package Check Results for Package causalOT

Last updated on 2025-10-23 11:50:09 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.2 67.06 182.33 249.39 NOTE
r-devel-linux-x86_64-debian-gcc 1.0.2 40.86 133.60 174.46 NOTE
r-devel-linux-x86_64-fedora-clang 1.0.2 327.00 103.30 430.30 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 65.67 171.80 237.47 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 70.00 120.00 190.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 85.00 161.00 246.00 ERROR

Check Details

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: HTML version of manual
Result: NOTE Found the following HTML validation problems: DataSim-CRASH3.html:130:1 (DataSim-CRASH3.Rd:81): Warning: <h5> anchor "Usage" already defined DataSim-CRASH3.html:146:1 (DataSim-CRASH3.Rd:91): Warning: <h5> anchor "Usage" already defined DataSim-CRASH3.html:162:1 (DataSim-CRASH3.Rd:101): Warning: <h5> anchor "Usage" already defined DataSim-CRASH3.html:178:1 (DataSim-CRASH3.Rd:111): Warning: <h5> anchor "Usage" already defined DataSim-CRASH3.html:233:1 (DataSim-CRASH3.Rd:153): Warning: <h5> anchor "Usage" already defined DataSim-CRASH3.html:239:1 (DataSim-CRASH3.Rd:157): Warning: <h5> anchor "Arguments" already defined DataSimClass-Hainmueller.html:122:1 (DataSimClass-Hainmueller.Rd:72): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:138:1 (DataSimClass-Hainmueller.Rd:82): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:154:1 (DataSimClass-Hainmueller.Rd:92): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:170:1 (DataSimClass-Hainmueller.Rd:102): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:270:1 (DataSimClass-Hainmueller.Rd:178): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:286:1 (DataSimClass-Hainmueller.Rd:188): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:302:1 (DataSimClass-Hainmueller.Rd:198): Warning: <h5> anchor "Usage" already defined DataSimClass-Hainmueller.html:308:1 (DataSimClass-Hainmueller.Rd:202): Warning: <h5> anchor "Arguments" already defined DataSimClass.html:111:1 (DataSimClass.Rd:56): Warning: <h5> anchor "Usage" already defined DataSimClass.html:127:1 (DataSimClass.Rd:66): Warning: <h5> anchor "Usage" already defined DataSimClass.html:143:1 (DataSimClass.Rd:76): Warning: <h5> anchor "Usage" already defined DataSimClass.html:159:1 (DataSimClass.Rd:86): Warning: <h5> anchor "Usage" already defined DataSimClass.html:175:1 (DataSimClass.Rd:96): Warning: <h5> anchor "Usage" already defined DataSimClass.html:191:1 (DataSimClass.Rd:106): Warning: <h5> anchor "Usage" already defined DataSimClass.html:207:1 (DataSimClass.Rd:116): Warning: <h5> anchor "Usage" already defined DataSimClass.html:223:1 (DataSimClass.Rd:126): Warning: <h5> anchor "Usage" already defined DataSimClass.html:239:1 (DataSimClass.Rd:136): Warning: <h5> anchor "Usage" already defined LaLonde.html:122:1 (LaLonde.Rd:76): Warning: <h5> anchor "Usage" already defined LaLonde.html:138:1 (LaLonde.Rd:86): Warning: <h5> anchor "Usage" already defined LaLonde.html:154:1 (LaLonde.Rd:96): Warning: <h5> anchor "Usage" already defined LaLonde.html:170:1 (LaLonde.Rd:106): Warning: <h5> anchor "Usage" already defined LaLonde.html:186:1 (LaLonde.Rd:116): Warning: <h5> anchor "Usage" already defined LaLonde.html:250:1 (LaLonde.Rd:167): Warning: <h5> anchor "Usage" already defined LaLonde.html:266:1 (LaLonde.Rd:177): Warning: <h5> anchor "Usage" already defined LaLonde.html:272:1 (LaLonde.Rd:181): Warning: <h5> anchor "Arguments" already defined Measure.html:181:1 (Measure.Rd:92): Warning: <h5> anchor "Usage" already defined Measure.html:197:1 (Measure.Rd:101): Warning: <h5> anchor "Usage" already defined Measure_-class.html:248:1 (Measure_-class.Rd:152): Warning: missing </ul> before </div> Measure_-class.html:128:1 (Measure_-class.Rd:74): Warning: <h5> anchor "Usage" already defined Measure_-class.html:144:1 (Measure_-class.Rd:84): Warning: <h5> anchor "Usage" already defined Measure_-class.html:173:1 (Measure_-class.Rd:101): Warning: <h5> anchor "Usage" already defined Measure_-class.html:188:1 (Measure_-class.Rd:114): Warning: <h5> anchor "Arguments" already defined Measure_-class.html:225:1 (Measure_-class.Rd:141): Warning: <h5> anchor "Usage" already defined Measure_-class.html:231:1 (Measure_-class.Rd:145): Warning: <h5> anchor "Arguments" already defined OTProblem.html:166:1 (OTProblem.Rd:77): Warning: <h5> anchor "Usage" already defined OTProblem.html:172:1 (OTProblem.Rd:80): Warning: <h5> anchor "Arguments" already defined OTProblem.html:195:1 (OTProblem.Rd:93): Warning: <h5> anchor "Usage" already defined OTProblem.html:201:1 (OTProblem.Rd:96): Warning: <h5> anchor "Arguments" already defined OTProblem.html:224:1 (OTProblem.Rd:109): Warning: <h5> anchor "Usage" already defined OTProblem.html:230:1 (OTProblem.Rd:112): Warning: <h5> anchor "Arguments" already defined OTProblem.html:251:1 (OTProblem.Rd:124): Warning: <h5> anchor "Usage" already defined OTProblem.html:268:1 (OTProblem.Rd:138): Warning: <h5> anchor "Arguments" already defined OTProblem.html:325:1 (OTProblem.Rd:169): Warning: <h5> anchor "Usage" already defined OTProblem.html:340:1 (OTProblem.Rd:181): Warning: <h5> anchor "Arguments" already defined OTProblem.html:367:1 (OTProblem.Rd:195): Warning: <h5> anchor "Examples" already defined OTProblem.html:386:1 (OTProblem.Rd:207): Warning: <h5> anchor "Usage" already defined OTProblem.html:396:1 (OTProblem.Rd:214): Warning: <h5> anchor "Arguments" already defined OTProblem.html:413:1 (OTProblem.Rd:223): Warning: <h5> anchor "Examples" already defined OTProblem.html:434:1 (OTProblem.Rd:237): Warning: <h5> anchor "Usage" already defined OTProblem.html:440:1 (OTProblem.Rd:240): Warning: <h5> anchor "Returns" already defined OTProblem.html:461:1 (OTProblem.Rd:248): Warning: <h5> anchor "Examples" already defined OTProblem.html:480:1 (OTProblem.Rd:260): Warning: <h5> anchor "Usage" already defined OTProblem.html:486:1 (OTProblem.Rd:263): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:510:1 (OTProblem_-class.Rd:305): Warning: missing </ul> before </div> OTProblem_-class.html:142:1 (OTProblem_-class.Rd:71): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:148:1 (OTProblem_-class.Rd:75): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:171:1 (OTProblem_-class.Rd:88): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:177:1 (OTProblem_-class.Rd:92): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:200:1 (OTProblem_-class.Rd:105): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:206:1 (OTProblem_-class.Rd:109): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:229:1 (OTProblem_-class.Rd:122): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:235:1 (OTProblem_-class.Rd:126): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:258:1 (OTProblem_-class.Rd:139): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:264:1 (OTProblem_-class.Rd:143): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:296:1 (OTProblem_-class.Rd:162): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:313:1 (OTProblem_-class.Rd:177): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:344:1 (OTProblem_-class.Rd:202): Warning: <h5> anchor "Returns" already defined OTProblem_-class.html:361:1 (OTProblem_-class.Rd:211): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:376:1 (OTProblem_-class.Rd:224): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:413:1 (OTProblem_-class.Rd:251): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:423:1 (OTProblem_-class.Rd:259): Warning: <h5> anchor "Arguments" already defined OTProblem_-class.html:450:1 (OTProblem_-class.Rd:276): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:456:1 (OTProblem_-class.Rd:280): Warning: <h5> anchor "Returns" already defined OTProblem_-class.html:487:1 (OTProblem_-class.Rd:294): Warning: <h5> anchor "Usage" already defined OTProblem_-class.html:493:1 (OTProblem_-class.Rd:298): Warning: <h5> anchor "Arguments" already defined data_separate.dataHolder.html:51:1 (data_separate.dataHolder.Rd:12): Warning: missing </ul> before </div> oop_loss_select.html:47:1 (oop_loss_select.Rd:10): Warning: missing </ul> before </div> print.dataHolder.html:51:1 (print.dataHolder.Rd:12): Warning: missing </ul> before </div> Flavor: r-devel-linux-x86_64-debian-clang

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 + } Flavors: r-devel-windows-x86_64, r-release-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") Flavors: r-devel-windows-x86_64, 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: 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 Flavor: 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. Flavor: 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. Flavor: 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 Flavor: 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 Flavor: 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. Flavor: 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 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

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.