* using log directory ‘/srv/hornik/tmp/CRAN_pretest/CausalQueries.Rcheck’ * using R Under development (unstable) (2024-11-03 r87286) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.1 (1) Debian flang-new version 19.1.1 (1) * running under: Debian GNU/Linux trixie/sid * using session charset: UTF-8 * checking for file ‘CausalQueries/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘CausalQueries’ version ‘1.2.0’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [5s/8s] 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 whether package ‘CausalQueries’ can be installed ... [83s/82s] WARNING Found the following significant warnings: Warning: CausalQueries.Rd:3: docType ‘_PACKAGE’ is unrecognized See ‘/srv/hornik/tmp/CRAN_pretest/CausalQueries.Rcheck/00install.out’ for details. * used C++ compiler: ‘Debian clang version 19.1.2 (2)’ * checking C++ specification ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking ‘build’ 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 ... [2s/2s] OK * checking whether the package can be loaded with stated dependencies ... [2s/2s] OK * checking whether the package can be unloaded cleanly ... [2s/2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK * checking whether the namespace can be unloaded cleanly ... [2s/2s] OK * checking loading without being on the library search path ... [4s/4s] OK * checking whether startup messages can be suppressed ... [2s/2s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... WARNING print: function(x, ...) print.summary.model_query: function(object) summary: function(object, ...) summary.model_query: function(object) See section ‘Generic functions and methods’ in the ‘Writing R Extensions’ manual. * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [15s/13s] OK * checking Rd files ... [0s/0s] WARNING prepare_Rd: CausalQueries.Rd:3: docType ‘_PACKAGE’ is unrecognized * 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 line endings in shell scripts ... 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 ... [4s/4s] ERROR Running examples in ‘CausalQueries-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: data_helpers > ### Title: Data helpers > ### Aliases: data_helpers collapse_data expand_data make_data make_events > > ### ** Examples > > > > > # Simple draws > model <- make_model("X -> M -> Y") > make_data(model) X M Y 1 1 1 0 > make_data(model, n = 3, nodes = c("X","Y")) X M Y 1 0 NA 0 2 1 NA 0 3 1 NA 1 > make_data(model, n = 3, param_type = "prior_draw") X M Y 1 0 0 0 2 0 1 1 3 1 0 1 > make_data(model, n = 10, param_type = "define", parameters = 0:9) X M Y 1 1 0 0 2 1 0 1 3 1 0 1 4 1 1 0 5 1 1 0 6 1 1 0 7 1 1 0 8 1 1 1 9 1 1 1 10 1 1 1 > > # Data Strategies > # A strategy in which X, Y are observed for sure and M is observed > # with 50% probability for X=1, Y=0 cases > > model <- make_model("X -> M -> Y") > make_data( + model, + n = 8, + nodes = list(c("X", "Y"), "M"), + probs = list(1, .5), + subsets = list(TRUE, "X==1 & Y==0")) X M Y 1 0 NA 0 2 0 NA 0 3 0 NA 1 4 0 NA 1 5 1 NA 0 6 1 0 0 7 1 NA 1 8 1 NA 1 > > # n not provided but inferred from largest n_step (not from sum of n_steps) > make_data( + model, + nodes = list(c("X", "Y"), "M"), + n_steps = list(5, 2)) Error in make_data(model, nodes = list(c("X", "Y"), "M"), n_steps = list(5, : n_step larger than n Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [6s/6s] OK Running ‘testthat.R’ [6s/6s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [55s/55s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 3 WARNINGs