* using log directory 'd:/RCompile/CRANincoming/R-devel/jointest.Rcheck' * using R Under development (unstable) (2024-12-10 r87437 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'jointest/DESCRIPTION' ... OK * this is package 'jointest' version '2.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Livio Finos ' New submission Possibly misspelled words in DESCRIPTION: Familywise (9:181) Unknown, possibly misspelled, fields in DESCRIPTION: 'Remotes' The Title field should be in title case. Current version is: 'Multivariate testing through joint resampling-based tests' In title case that is: 'Multivariate Testing Through Joint Resampling-Based Tests' The Description field contains ) to allow for multivariate testing, i.e., Please write DOIs as . * 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 'jointest' can be installed ... 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 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 ... OK * checking Rd files ... 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 contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'jointest-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: join_flipscores > ### Title: join tests from multiverse models > ### Aliases: join_flipscores > > ### ** Examples > > library(jointest) > set.seed(123) > > > #EXAMPLE 1: Simulate data: > n=20 > D=data.frame(X=rnorm(n),Z1=rnorm(n),Z2=rnorm(n)) > D$Y=D$Z1+D$X+rnorm(n) > > # Run four glms abd combine it in a list > mod1=glm(Y~X+Z1+Z2,data=D) > mod2=glm(Y~X+poly(Z1,2)+Z2,data=D) > mod3=glm(Y~X+poly(Z1,2)+poly(Z2,2),data=D) > mod4=glm(Y~X+Z1+poly(Z2,2),data=D) > mods=list(mod1=mod1,mod2=mod2,mod3=mod3,mod4=mod4) > > # flipscores jointly on all models > res=join_flipscores(mods,n_flips = 1000) > summary(combine(res)) Model Coeff Stat nTests S p 1 Overall many maxT 20 19.78375 0.012 > summary(combine(res, by="Model")) Model Coeff Stat nTests S p 1 mod1 many maxT 4 19.78375 0.012 2 mod2 many maxT 5 15.38036 0.023 3 mod3 many maxT 6 14.31866 0.022 4 mod4 many maxT 5 17.62979 0.010 > summary(combine_contrasts(res)) Model Coeff Stat nTests S p 1 mod1 (Intercept) Mahalanobis 1 0.015397573 0.645 2 mod1 X Mahalanobis 1 0.063345731 0.012 3 mod1 Z1 Mahalanobis 1 0.081964684 0.001 4 mod1 Z2 Mahalanobis 1 0.028061470 0.396 5 mod2 (Intercept) Mahalanobis 1 0.028543183 0.373 6 mod2 X Mahalanobis 1 0.063464285 0.023 7 mod2 poly(Z1, 2) Mahalanobis 2 6.785258498 0.007 8 mod2 Z2 Mahalanobis 1 0.005339577 0.881 9 mod3 (Intercept) Mahalanobis 1 0.029423638 0.374 10 mod3 X Mahalanobis 1 0.065802300 0.022 11 mod3 poly(Z1, 2) Mahalanobis 2 6.106607329 0.010 12 mod3 poly(Z2, 2) Mahalanobis 2 0.957008442 0.647 13 mod4 (Intercept) Mahalanobis 1 0.018831666 0.565 14 mod4 X Mahalanobis 1 0.066979615 0.010 15 mod4 Z1 Mahalanobis 1 0.082481423 0.001 16 mod4 poly(Z2, 2) Mahalanobis 2 1.171827830 0.585 > > #Simulate multivariate (50) bionomial responses > set.seed(123) > n=30 > D=data.frame(X=rnorm(n),Z=rnorm(n)) > Y=replicate(50,rbinom(n,1,plogis(.5*D$Z+.5*D$X))) > colnames(Y)=paste0("Y",1:50) > D=cbind(D,Y) > mods=lapply(1:50,function(i)eval(parse(text= + paste(c("glm(formula(Y",i,"~X+Z),data=D,family='binomial')"),collapse="")))) > # flipscores jointly on all models > res=join_flipscores(mods,n_flips = 1000,tested_coeffs ="X") Warning in names(model$call$data)[1] <- yname : number of items to replace is not a multiple of replacement length Warning in formula.character(object, env = baseenv()) : Using formula(x) is deprecated when x is a character vector of length > 1. Consider formula(paste(x, collapse = " ")) instead. Warning in formula.character(object, env = baseenv()) : Using formula(x) is deprecated when x is a character vector of length > 1. Consider formula(paste(x, collapse = " ")) instead. Error in eval(family$initialize) : for the 'binomial' family, y must be a vector of 0 and 1's or a 2 column matrix where col 1 is no. successes and col 2 is no. failures Calls: join_flipscores ... eval -> glm -> eval -> eval -> glm.fit -> eval -> eval Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE