* using log directory 'd:/Rcompile/CRANpkg/local/4.1/PlotTools.Rcheck' * using R version 4.1.3 (2022-03-10) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'PlotTools/DESCRIPTION' ... OK * this is package 'PlotTools' version '0.1.0' * 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 'PlotTools' 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 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 ... [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 ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [2s] ERROR Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(PlotTools) > > test_check("PlotTools") [ FAIL 2 | WARN 0 | SKIP 1 | PASS 1 ] == Skipped tests =============================================================== * On CRAN (1) == Failed tests ================================================================ -- Error ('test-SpectrumLegend.R:4:3'): SpectrumLegend() ----------------------- Error in `legend(x = x, legend = legend, horiz = horiz, adj = adj, cex = cex, bty = ifelse(horiz, "n", bty), lty = 0, ncol = 1, seg.len = seg.len, ...)`: unused arguments (title.font = 3, title.cex = 1.5) Backtrace: x 1. \-vdiffr::expect_doppelganger(...) at test-SpectrumLegend.R:4:2 2. \-vdiffr (local) writer(fig, testcase, title) 3. +-vdiffr:::print_plot(plot, title) 4. \-vdiffr:::print_plot.function(plot, title) 5. \-PlotTools (local) p() 6. \-PlotTools::SpectrumLegend(...) at test-SpectrumLegend.R:11:4 -- Error ('test-SpectrumLegend.R:30:3'): Vertical SizeLegend() ----------------- Error in `legend(x = x, legend = legend, horiz = horiz, adj = adj, cex = cex, bty = ifelse(horiz, "n", bty), lty = if (horiz) 0 else 1, ncol = 1, col = par("bg"), seg.len = if (horiz) 0 else seg.len, ...)`: unused arguments (title.font = 3, title.cex = 1.5) Backtrace: x 1. \-vdiffr::expect_doppelganger(...) at test-SpectrumLegend.R:30:2 2. \-vdiffr (local) writer(fig, testcase, title) 3. +-vdiffr:::print_plot(plot, title) 4. \-vdiffr:::print_plot.function(plot, title) 5. \-PlotTools (local) p() 6. \-PlotTools::SizeLegend(...) at test-SpectrumLegend.R:35:4 [ FAIL 2 | WARN 0 | SKIP 1 | PASS 1 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR