- using R Under development (unstable) (2025-06-27 r88363 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'DistributionIV/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'DistributionIV' version '0.1.2'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'DistributionIV' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- 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 ... [3s] OK
- checking whether the package can be loaded with stated dependencies ... [3s] OK
- checking whether the package can be unloaded cleanly ... [3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s] OK
- checking whether the namespace can be unloaded cleanly ... [3s] OK
- checking loading without being on the library search path ... [3s] OK
- checking whether startup messages can be suppressed ... [3s] 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 ... [7s] OK
- checking Rd files ... [0s] OK
- checking Rd metadata ... 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 examples ... [3s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [15s] ERROR
Running 'testthat.R' [14s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(DistributionIV)
>
> test_check("DistributionIV")
OMP: Warning #96: Cannot form a team with 48 threads, using 2 instead.
OMP: Hint Consider unsetting KMP_DEVICE_THREAD_LIMIT (KMP_ALL_THREADS), KMP_TEAMS_THREAD_LIMIT, and OMP_THREAD_LIMIT (if any are set).
DIV object with
noise dimensions (for shared noise eps_H, and for indep. noise eps_X and eps_Y): (50,50,50)
hidden dimensions: 100
number of layers: 3
number of epochs: 20
learning rate: 0.001
standardization: TRUE
Training loss:
epoch Energy loss E(||U-Uhat||) E(||Uhat-Uhat'||)
1 0.866 1.44 1.15
2 0.811 1.41 1.19
4 0.837 1.60 1.52
6 0.938 1.80 1.73
8 0.866 1.85 1.96
10 0.920 1.89 1.94
12 0.869 1.92 2.10
14 0.872 2.00 2.25
16 0.878 2.03 2.29
18 0.970 2.00 2.06
20 0.927 2.04 2.23
Prediction-loss E(||U-Uhat||) and variance-loss E(||Uhat-Uhat'||) should ideally be equally large --
consider training for more epochs if there is a mismatch.
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 21 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-predict.DIV.R:20:3'): Vector of mean values of proper length returned ──
<rlib_error_package_not_found/rlang_error/error/condition>
Error in `expect_vector(predict(div_modelnoW, Xtest = matrix(rnorm(40,
mean = 2), ncol = 1)), size = 40)`: The package "vctrs" is required.
Backtrace:
▆
1. └─testthat::expect_vector(...) at test-predict.DIV.R:20:3
2. └─rlang::check_installed("vctrs")
── Error ('test-predict.DIV.R:37:3'): Vector of quantile values of proper length returned ──
<rlib_error_package_not_found/rlang_error/error/condition>
Error in `expect_vector(predict(div_modelnoW, Xtest = matrix(rnorm(40,
mean = 2), ncol = 1), type = "quantile", nsample = 200, quantiles = 0.05),
size = 40)`: The package "vctrs" is required.
Backtrace:
▆
1. └─testthat::expect_vector(...) at test-predict.DIV.R:37:3
2. └─rlang::check_installed("vctrs")
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 21 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [2s] OK
- DONE
Status: 1 ERROR