* using log directory 'd:/RCompile/CRANincoming/R-devel/CausalQueries.Rcheck' * using R Under development (unstable) (2024-11-03 r87286 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * 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 ... [10s] 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'CausalQueries' can be installed ... WARNING Found the following significant warnings: Warning: CausalQueries.Rd:3: docType '_PACKAGE' is unrecognized See 'd:/RCompile/CRANincoming/R-devel/CausalQueries.Rcheck/00install.out' for details. * used C++ compiler: 'g++.exe (GCC) 13.2.0' * checking C++ specification ... OK * checking installed package size ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking whether startup messages can be suppressed ... 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 ... [17s] OK * checking Rd files ... 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 ... 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 ... 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 ... OK Running 'testthat.R' * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [85s] OK * checking PDF version of manual ... [15s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 3 WARNINGs