- using R Under development (unstable) (2025-06-27 r88363)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (3+b1)
Debian flang-new version 19.1.7 (3+b1)
- running under: Debian GNU/Linux 13 (trixie)
- using session charset: UTF-8
- checking for file ‘causalOT/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘causalOT’ version ‘1.0.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/3s] 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>.
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘rkeops’
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘causalOT’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 19.1.7 (3+b1)’
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... 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’
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [147s/202s] 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
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] 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-clang/Work/build/Packages/torch/'.
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [326s/374s] ERROR
Running ‘testthat.R’ [326s/374s]
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-clang/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-clang/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-clang/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-clang/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-clang/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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/5s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 3 NOTEs