* using log directory 'd:/Rcompile/CRANpkg/local/3.5/glmnetUtils.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'glmnetUtils/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'glmnetUtils' version '1.1.5' * 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 'glmnetUtils' 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 use of S3 registration ... OK * checking dependencies in R code ... NOTE Missing or unexported object: 'glmnet::relax.glmnet' * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [9s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'glmnetUtils-Ex.R' failed The error most likely occurred in: > ### Name: cv.glmnet > ### Title: Formula interface for elastic net cross-validation with > ### cv.glmnet > ### Aliases: cv.glmnet cv.glmnet.default cv.glmnet.formula > ### predict.cv.glmnet.formula coef.cv.glmnet.formula > ### print.cv.glmnet.formula predict.cv.relaxed.formula > ### coef.cv.relaxed.formula > > ### ** Examples > > cv.glmnet(mpg ~ ., data=mtcars) Error in glmnet(x, y, weights = weights, offset = offset, lambda = lambda, : unused arguments (gamma = gamma, relax = relax) Calls: cv.glmnet -> cv.glmnet.formula -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [24s] ERROR Running 'testthat.R' [23s] Running the tests in 'tests/testthat.R' failed. Complete output: > Sys.setenv(R_TESTS="") # needed for cluster creation to work > > library(testthat) > library(glmnetUtils) > > test_check("glmnetUtils") -- 1. Error: (unknown) (@test2_cv_glmnet.R#11) -------------------------------- unused arguments (gamma = gamma, relax = relax) Backtrace: 1. glmnetUtils::cv.glmnet(...) 2. glmnetUtils:::cv.glmnet.formula(...) 3. glmnet::cv.glmnet(...) -- 2. Error: mismatched factor levels work, cv.glmnet (@test4_predict.R#35) --- unused arguments (gamma = gamma, relax = relax) Backtrace: 1. glmnetUtils::cv.glmnet(y ~ x, df, lambda = l, use.model.frame = TRUE) 2. glmnetUtils:::cv.glmnet.formula(y ~ x, df, lambda = l, use.model.frame = TRUE) 3. glmnet::cv.glmnet(...) -- 3. Error: relaxed glmnet works (@test5_relaxed.R#7) ------------------------ unused argument (relax = TRUE) -- 4. Error: relaxed glmnet works with weights and offset (@test5_relaxed.R#21) unused argument (relax = TRUE) -- 5. Error: relaxed predict and coef work (@test5_relaxed.R#35) -------------- unused argument (relax = TRUE) Backtrace: 1. glmnetUtils::glmnet(x, y, family = "multinomial", relax = TRUE) 2. glmnetUtils:::glmnet.default(x, y, family = "multinomial", relax = TRUE) -- 6. Error: relaxed predict and coef work with nondefault gamma (@test5_relaxed unused argument (relax = TRUE) Backtrace: 1. glmnetUtils::glmnet(x, y, family = "multinomial", relax = TRUE) 2. glmnetUtils:::glmnet.default(x, y, family = "multinomial", relax = TRUE) -- 7. Error: (unknown) (@test6_relaxed_cv.R#7) -------------------------------- unused arguments (gamma = (0:3)/3, relax = TRUE) Backtrace: 1. glmnet::cv.glmnet(...) == testthat results =========================================================== [ OK: 105 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 7 ] 1. Error: (unknown) (@test2_cv_glmnet.R#11) 2. Error: mismatched factor levels work, cv.glmnet (@test4_predict.R#35) 3. Error: relaxed glmnet works (@test5_relaxed.R#7) 4. Error: relaxed glmnet works with weights and offset (@test5_relaxed.R#21) 5. Error: relaxed predict and coef work (@test5_relaxed.R#35) 6. Error: relaxed predict and coef work with nondefault gamma (@test5_relaxed.R#54) 7. Error: (unknown) (@test6_relaxed_cv.R#7) Error: testthat unit tests failed Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [44s] OK * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 NOTE