Last updated on 2025-06-26 02:51:19 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 1.0.2 | 58.86 | 148.58 | 207.44 | NOTE | |
r-devel-linux-x86_64-debian-gcc | 1.0.2 | 40.12 | 839.64 | 879.76 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 1.0.2 | 371.99 | NOTE | |||
r-devel-linux-x86_64-fedora-gcc | 1.0.2 | 355.95 | NOTE | |||
r-devel-windows-x86_64 | 1.0.2 | 66.00 | 155.00 | 221.00 | NOTE | |
r-patched-linux-x86_64 | ERROR | |||||
r-release-linux-x86_64 | 1.0.2 | 56.47 | 139.18 | 195.65 | NOTE | |
r-release-macos-arm64 | 1.0.2 | 103.00 | NOTE | |||
r-release-macos-x86_64 | 1.0.2 | 164.00 | NOTE | |||
r-release-windows-x86_64 | 1.0.2 | 73.00 | 158.00 | 231.00 | NOTE | |
r-oldrel-macos-arm64 | 1.0.2 | 76.00 | NOTE | |||
r-oldrel-macos-x86_64 | 1.0.2 | 107.00 | NOTE | |||
r-oldrel-windows-x86_64 | 1.0.2 | 84.00 | 223.00 | 307.00 | NOTE |
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: R code for possible problems
Result: NOTE
cotDualBfOpt: no visible global function definition for
‘create_nn_module_callable’
cotDualBfOpt_keops: no visible global function definition for
‘create_nn_module_callable’
cotDualOpt: no visible global function definition for
‘create_nn_module_callable’
cotDualOpt_keops: no visible global function definition for
‘create_nn_module_callable’
energy_dist_online: no visible global function definition for
‘create_f’
energy_dist_online: no visible global function definition for
‘create_b’
energy_dist_online : <anonymous>: no visible global function definition
for ‘is_torch_tensor’
energy_dist_online: no visible global function definition for
‘cpp_Function_apply’
inf_sinkhorn_online: no visible global function definition for
‘create_f’
inf_sinkhorn_online: no visible global function definition for
‘create_b’
inf_sinkhorn_online : <anonymous>: no visible global function
definition for ‘is_torch_tensor’
inf_sinkhorn_online: no visible global function definition for
‘cpp_Function_apply’
mirror_softmax: no visible global function definition for ‘create_f’
mirror_softmax: no visible global function definition for ‘create_b’
mirror_softmax : <anonymous>: no visible global function definition for
‘is_torch_tensor’
mirror_softmax: no visible global function definition for
‘cpp_Function_apply’
softmin_keops: no visible global function definition for ‘create_f’
softmin_keops: no visible global function definition for ‘create_b’
softmin_keops : <anonymous>: no visible global function definition for
‘is_torch_tensor’
softmin_keops: no visible global function definition for
‘cpp_Function_apply’
Undefined global functions or variables:
cpp_Function_apply create_b create_f create_nn_module_callable
is_torch_tensor
Flavors: r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64
Version: 1.0.2
Check: examples
Result: ERROR
Running examples in ‘causalOT-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
+ }
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [433s/541s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(causalOT)
>
> test_check("causalOT")
[ FAIL 5 | WARN 0 | SKIP 53 | PASS 97 ]
══ Skipped tests (53) ══════════════════════════════════════════════════════════
• On CRAN (24): '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-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'
• {torch} cannot be loaded (29): 'test-OTmethod.R:2:3', 'test-OTmethod.R:60:3',
'test-OTmethod.R:161:3', 'test-OTmethod.R:347:3', 'test-OTmethod.R:440:3',
'test-barycentric_projection.R:2:3', 'test-barycentric_projection.R:91:3',
'test-barycentric_projection.R:181:3', 'test-calc_weight.R:2:3',
'test-costMethod.R:6:3', 'test-costMethod.R:106:3',
'test-cotProblem.R:112:3', 'test-cotProblem.R:135:3', 'test-dual_opts.R:2:3',
'test-dual_opts.R:150:3', 'test-dual_opts.R:285:3',
'test-estimate_effect.R:2:3', 'test-estimate_effect.R:76:3',
'test-estimate_effect.R:134:3', 'test-estimate_effect.R:192:3',
'test-estimate_effect.R:354:3', 'test-estimate_effect.R:505:3',
'test-estimate_effect.R:668:3', 'test-estimate_effect.R:712:3',
'test-estimate_effect.R:757:3', 'test-estimate_effect.R:801:3',
'test-gridSearch.R:2:3', 'test-gridSearch.R:106:3', 'test-gridSearch.R:155:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-cotProblem.R:7:3'): cotProblem CBPS ────────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:7:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:29:3'): cotProblem logistic ───────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:29:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:51:3'): cotProblem probit ─────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:51:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:73:3'): cotProblem SBW ────────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:73:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:95:3'): cotProblem EBW ────────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:95:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
[ FAIL 5 | WARN 0 | SKIP 53 | PASS 97 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.2
Check: examples
Result: ERROR
Running examples in ‘causalOT-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
+ }
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'.
Execution halted
Flavor: r-patched-linux-x86_64
Version: 1.0.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [327s/385s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(causalOT)
>
> test_check("causalOT")
[ FAIL 5 | WARN 0 | SKIP 53 | PASS 97 ]
══ Skipped tests (53) ══════════════════════════════════════════════════════════
• On CRAN (24): '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-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'
• {torch} cannot be loaded (29): 'test-OTmethod.R:2:3', 'test-OTmethod.R:60:3',
'test-OTmethod.R:161:3', 'test-OTmethod.R:347:3', 'test-OTmethod.R:440:3',
'test-barycentric_projection.R:2:3', 'test-barycentric_projection.R:91:3',
'test-barycentric_projection.R:181:3', 'test-calc_weight.R:2:3',
'test-costMethod.R:6:3', 'test-costMethod.R:106:3',
'test-cotProblem.R:112:3', 'test-cotProblem.R:135:3', 'test-dual_opts.R:2:3',
'test-dual_opts.R:150:3', 'test-dual_opts.R:285:3',
'test-estimate_effect.R:2:3', 'test-estimate_effect.R:76:3',
'test-estimate_effect.R:134:3', 'test-estimate_effect.R:192:3',
'test-estimate_effect.R:354:3', 'test-estimate_effect.R:505:3',
'test-estimate_effect.R:668:3', 'test-estimate_effect.R:712:3',
'test-estimate_effect.R:757:3', 'test-estimate_effect.R:801:3',
'test-gridSearch.R:2:3', 'test-gridSearch.R:106:3', 'test-gridSearch.R:155:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-cotProblem.R:7:3'): cotProblem CBPS ────────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:7:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:29:3'): cotProblem logistic ───────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:29:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:51:3'): cotProblem probit ─────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:51:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:73:3'): cotProblem SBW ────────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:73:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
── Error ('test-cotProblem.R:95:3'): cotProblem EBW ────────────────────────────
Error: .onLoad failed in loadNamespace() for 'torch', details:
call: inst_path()
error: torch cannot write into
'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/torch/'.
Backtrace:
▆
1. └─base::loadNamespace(x) at test-cotProblem.R:95:3
2. └─base (local) runHook(".onLoad", env, package.lib, package)
[ FAIL 5 | WARN 0 | SKIP 53 | PASS 97 ]
Error: Test failures
Execution halted
Flavor: r-patched-linux-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