* using log directory 'd:/Rcompile/CRANpkg/local/3.1/pbkrtest.Rcheck' * using R version 3.1.3 (2015-03-09) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'pbkrtest/DESCRIPTION' ... OK * this is package 'pbkrtest' version '0.4-5' * package encoding: latin1 * 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 'pbkrtest' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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 R 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 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 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 data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'pbkrtest-Ex.R' failed The error most likely occurred in: > ### Name: KenwardRoger > ### Title: Ftest and degrees of freedom based on Kenward-Roger > ### approximation > ### Aliases: KRmodcomp KRmodcomp.lmerMod KRmodcomp_internal KRmodcomp.mer > ### Keywords: function > > ### ** Examples > > (fmLarge <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy)) Linear mixed model fit by REML ['lmerMod'] Formula: Reaction ~ Days + (Days | Subject) Data: sleepstudy REML criterion at convergence: 1743.628 Random effects: Groups Name Std.Dev. Corr Subject (Intercept) 24.740 Days 5.922 0.07 Residual 25.592 Number of obs: 180, groups: Subject, 18 Fixed Effects: (Intercept) Days 251.41 10.47 > ## removing Days > (fmSmall <- lmer(Reaction ~ 1 + (Days|Subject), sleepstudy)) Linear mixed model fit by REML ['lmerMod'] Formula: Reaction ~ 1 + (Days | Subject) Data: sleepstudy REML criterion at convergence: 1769.845 Random effects: Groups Name Std.Dev. Corr Subject (Intercept) 25.53 Days 11.93 -0.18 Residual 25.59 Number of obs: 180, groups: Subject, 18 Fixed Effects: (Intercept) 257.8 > anova(fmLarge,fmSmall) refitting model(s) with ML (instead of REML) Data: sleepstudy Models: fmSmall: Reaction ~ 1 + (Days | Subject) fmLarge: Reaction ~ Days + (Days | Subject) Df AIC BIC logLik deviance Chisq Chi Df Pr(>Chisq) fmSmall 5 1785.5 1801.4 -887.74 1775.5 fmLarge 6 1763.9 1783.1 -875.97 1751.9 23.537 1 1.226e-06 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 > KRmodcomp(fmLarge,fmSmall) Note: method with signature 'sparseMatrix#ANY' chosen for function 'kronecker', target signature 'dgCMatrix#ngCMatrix'. "ANY#sparseMatrix" would also be valid Error in cbind(do.call(cbind, SigmaG$G), X) : number of rows of matrices must match (see arg 2) Calls: KRmodcomp ... vcovAdj -> vcovAdj.lmerMod -> vcovAdj16_internal -> cbind Execution halted