Running 'testthat.R' [15s]
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.921          1.39             0.936
       2       0.903          1.47             1.140
       4       0.877          1.54             1.330
       6       0.961          1.75             1.580
       8       0.907          1.85             1.900
      10       0.881          1.79             1.820
      12       0.877          1.91             2.070
      14       0.908          2.05             2.280
      16       0.918          2.00             2.170
      18       0.817          1.87             2.110
      20       0.971          2.02             2.090
  
  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