* using log directory 'd:/Rcompile/CRANpkg/local/3.6/cvCovEst.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'cvCovEst/DESCRIPTION' ... OK * this is package 'cvCovEst' version '0.3.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 'cvCovEst' 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 ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [11s] 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 'cvCovEst-Ex.R' failed The error most likely occurred in: > ### Name: plot.cvCovEst > ### Title: Generic Plot Method for cvCovest > ### Aliases: plot.cvCovEst > > ### ** Examples > > cv_dat <- cvCovEst( + dat = mtcars, + estimators = c( + thresholdingEst, sampleCovEst + ), + estimator_params = list( + thresholdingEst = list(gamma = seq(0.1, 0.9, 0.1)) + ), + center = TRUE, + scale = TRUE + ) > > plot(x = cv_dat, dat_orig = mtcars) Error in thresholdingEst(dat = c(0.150884824647657, 0.150884824647657, : unused argument (`2` = NA) Calls: plot ... cvSummaryPlot -> cvEigenPlot -> lapply -> FUN -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [201s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [201s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(cvCovEst) cvCovEst v0.3.1: Cross-Validated Covariance Matrix Estimation > > test_check("cvCovEst") == Failed tests ================================================================ -- Error (test-plot-functions.R:104:3): Only supported summary statistics are allowed for plotting -- Error: unused argument (`3` = NA) Backtrace: x 1. +-testthat::expect_silent(...) test-plot-functions.R:104:2 2. | \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. | +-testthat:::.capture(...) 4. | | +-withr::with_output_sink(...) 5. | | | \-base::force(code) 6. | | +-base::withCallingHandlers(...) 7. | | \-base::withVisible(code) 8. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. \-cvCovEst:::cvMultiMelt(...) 10. \-base::lapply(...) 11. \-cvCovEst:::FUN(X[[i]], ...) 12. \-rlang::exec(est, !!!est_args) -- Error (test-plot-functions.R:226:3): Plot method throws other errors where appripriate -- Error: unused argument (`3` = NA) Backtrace: x 1. +-testthat::expect_message(...) test-plot-functions.R:226:2 2. | \-testthat:::quasi_capture(enquo(object), label, capture_messages) 3. | +-testthat:::.capture(...) 4. | | \-base::withCallingHandlers(...) 5. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. \-cvCovEst:::plot.cvCovEst(...) 7. \-cvCovEst:::cvSummaryPlot(...) 8. \-cvCovEst:::cvEigenPlot(...) 9. \-base::lapply(...) 10. \-cvCovEst:::FUN(X[[i]], ...) 11. \-rlang::exec(estimator, !!!est_args) -- Error (test-plot-functions.R:236:1): (code run outside of `test_that()`) ---- Error: unused argument (`3` = NA) Backtrace: x 1. \-cvCovEst:::plot.cvCovEst(...) test-plot-functions.R:236:0 2. \-cvCovEst:::cvSummaryPlot(...) 3. \-cvCovEst:::cvEigenPlot(...) 4. \-base::lapply(...) 5. \-cvCovEst:::FUN(X[[i]], ...) 6. \-rlang::exec(estimator, !!!est_args) -- Failure (test-safeColScale.R:36:3): `safeColScale` ouputs a matrix object --- class(safeColScale(dat, center, scale)) not equal to c("matrix", "array"). Lengths differ: 1 is not 2 -- Failure (test-safeColScale.R:37:3): `safeColScale` ouputs a matrix object --- class(safeColScale(as(dat, "dgCMatrix"), center, scale)) not equal to c("matrix", "array"). Lengths differ: 1 is not 2 [ FAIL 5 | WARN 0 | SKIP 0 | PASS 159 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [19s] WARNING Error(s) in re-building vignettes: --- re-building 'using_cvCovEst.Rmd' using rmarkdown Quitting from lines 313-315 (using_cvCovEst.Rmd) Error: processing vignette 'using_cvCovEst.Rmd' failed with diagnostics: unused argument (`2` = NA) --- failed re-building 'using_cvCovEst.Rmd' SUMMARY: processing the following file failed: 'using_cvCovEst.Rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING