* using log directory ‘/home/hornik/tmp/CRAN_special_donttest/DistributionIV.Rcheck’ * using R Under development (unstable) (2025-06-26 r88362) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc-14 (Debian 14.2.0-19) 14.2.0 GNU Fortran (Debian 14.2.0-19) 14.2.0 * running under: Debian GNU/Linux 13 (trixie) * using session charset: UTF-8 * using option ‘--run-donttest’ * checking for file ‘DistributionIV/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘DistributionIV’ version ‘0.1.1’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/4s] OK * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking serialization versions ... OK * checking whether package ‘DistributionIV’ can be installed ... [4s/4s] OK * checking package directory ... OK * checking for future file timestamps ... 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 ... [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 whether startup messages can be suppressed ... [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 ... [6s/6s] OK * checking Rd files ... [0s/0s] 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 examples ... [1s/1s] ERROR Running examples in ‘DistributionIV-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: div > ### Title: Distributional IV Model Function > ### Aliases: div > > ### ** Examples > > ## No test: > # Simulate data ------------------------------------------------------------- > p_Z <- 4 > p_X <- 2 > > set.seed(2209) > n_train <- 1000 > Z <- matrix(rnorm(n_train * p_Z, mean = 2), ncol = p_Z) > H <- rnorm(n_train, mean = 0, sd = 1.5) > X1 <- 0.1 * (Z[, 1] + rnorm(n_train, sd = 0.1)) ^ 2 + + (Z[, 2] + rnorm(n_train, sd = 1)) ^ 2 + H + rnorm(n_train, sd = 0.1) > X2 <- 0.5 * (Z[, 3] + Z[, 4]) ^ 2 + 0.1 * H ^ 2 + rnorm(n_train, sd = 0.1) > X <- matrix(cbind(X1, X2), ncol = p_X) > Y <- 0.5 * X[, 1] + 0.2 * (X[, 2] + rnorm(n_train, sd = 0.2) + H) ^ 2 + + rnorm(n_train, sd = 0.1) > > n_test <- n_train > Ztest <- matrix(rnorm(n_test * p_Z, mean = 2), ncol = p_Z) > Htest <- rnorm(n_test, mean = 0, sd = 1.5) > X1test <- 0.1 * (Ztest[, 1] + rnorm(n_test, sd = 0.1)) ^ 2 + + (Ztest[, 2] + rnorm(n_test, sd = 1)) ^ 2 + Htest + rnorm(n_test, sd = 0.1) > X2test <- 0.5 * (Ztest[, 3] + Ztest[, 4]) ^ 2 + 0.1 * Htest ^ 2 + rnorm(n_test, sd = 0.1) > Xtest <- matrix(cbind(X1test, X2test), ncol = p_X) > Ytest <- 0.5 * Xtest[, 1] + 0.2 * (Xtest[, 2] + rnorm(n_test, sd = 0.2) + Htest) ^ 2 + + rnorm(n_test, sd = 0.1) > > # Fit generativeIV model ---------------------------------------------------- > # Consider increasing number of epochs. Here: num_epochs = 100 for fast computation only. > DIV_model <- div(Z = Z, X = X, Y = Y, num_epochs = 100) Torch dependencies are missing. Please install them using torch::install_torch(). Error in (function (size, options, memory_format) : Lantern is not loaded. Please use `install_torch()` to install additional dependencies. Calls: div ... call_c_function -> do_call -> do.call -> Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [1s/1s] OK Running ‘testthat.R’ [1s/1s] * checking PDF version of manual ... [2s/2s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR