* using log directory 'd:/Rcompile/CRANpkg/local/4.5/DRDRtest.Rcheck' * using R Under development (unstable) (2024-06-07 r86704 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 'DRDRtest/DESCRIPTION' ... OK * this is package 'DRDRtest' version '0.1' * 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 'DRDRtest' can be installed ... OK * 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [3s] 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] ERROR Running examples in 'DRDRtest-Ex.R' failed The error most likely occurred in: > ### Name: drdrtest.superlearner > ### Title: The function for performing tests of average treatment effects > ### with SuperLearner > ### Aliases: drdrtest.superlearner > > ### ** Examples > > mu.mod<-function(a,l,delta,height){ + mu <- as.numeric(l%*%c(0.2,0.2,0.3,-0.1))+triangle(a-2.5,delta,height)+a*(-0.1*l[,1]+0.1*l[,3]) + return(mu) + } > triangle <- function(a,delta,height){ + y <- exp(-a^2/((delta/2)^2))*height + return(y) + } > set.seed(2000) > n <- 500 > d <- 4 > sigma <- 0.05 > delta <- 1 > height <- 0 > arange<-c(0.01,4.99) > > l <- matrix(rnorm(n*d),ncol=d) > colnames(l) <- paste("l",1:4,sep="") > logit.lambda <- as.numeric(l%*%c(0.1,0.1,-0.1,0.2)) > lambda <- exp(logit.lambda)/(1+exp(logit.lambda)) > a <- rbeta(n, shape1 = lambda, shape2 =1-lambda)*5 > > mu <- mu.mod(a,l,delta,height) > residual.list <- rnorm(n,mean=0,sd=sigma) > y <- mu+residual.list > > out <- drdrtest.superlearner(y,a,l,arange,pi.sl.lib=c("SL.glm"),mu.sl.lib=c("SL.glm")) Error: cannot allocate vector of size 1.5 Mb Execution halted * checking PDF version of manual ... [1s] WARNING LaTeX errors when creating PDF version. This typically indicates Rd problems. * checking PDF version of manual without index ... ERROR Re-running with no redirection of stdout/stderr. * checking HTML version of manual ... [1s] OK * DONE Status: 2 ERRORs, 1 WARNING