* using log directory 'd:/Rcompile/CRANpkg/local/4.5/metR.Rcheck' * using R Under development (unstable) (2024-05-07 r86527 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'metR/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'metR' version '0.15.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 'metR' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [1s] 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 ... [13s] OK * checking Rd files ... [2s] 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 ... [1s] 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 ... [49s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [38s] ERROR Running 'testthat.R' [38s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(metR) > # library(vdiffr) > > on_cran <- !isTRUE(as.logical(Sys.getenv("NOT_CRAN", "false"))) > if (on_cran) data.table::setDTthreads(2) > > test_check("metR") [ FAIL 1 | WARN 3 | SKIP 23 | PASS 181 ] ══ Skipped tests (23) ══════════════════════════════════════════════════════════ • On CRAN (23): 'test-GetSMNData.R:3:5', 'test-GetSMNData.R:16:5', 'test-GetSMNData.R:30:5', 'test-GetTopography.R:3:5', 'test-ReadNetCDF.R:66:5', 'test-vis-arrow.R:10:5', 'test-vis-arrow.R:40:5', 'test-vis-contour2.R:10:5', 'test-vis-contour2.R:24:5', 'test-vis-contour2.R:35:5', 'test-vis-contour2.R:54:5', 'test-vis-contour2.R:73:5', 'test-vis-contour_fill.R:10:5', 'test-vis-contour_fill.R:24:5', 'test-vis-contour_fill.R:40:5', 'test-vis-discretised-scale.R:13:5', 'test-vis-geom-relief.R:9:5', 'test-vis-guide_colorstrip.R:14:5', 'test-vis-streamline.R:22:5', 'test-vis-streamline.R:28:5', 'test-vis-text-contour.R:11:5', 'test-vis-text-contour.R:67:5', 'test-vis-text-contour.R:78:5' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-derivate.R:50:5'): Works with unequal grid ─────────────────── sd(dx_num - dx, na.rm = TRUE) < 1e-04 is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. └─metR (local) test_derv(y, fill = TRUE) at test-derivate.R:50:5 2. └─testthat::expect_true(sd(dx_num - dx, na.rm = TRUE) < 1e-04) at test-derivate.R:15:5 [ FAIL 1 | WARN 3 | SKIP 23 | PASS 181 ] Deleting unused snapshots: • vis-arrow/dx-and-dy.svg • vis-arrow/guide-default.svg • vis-arrow/guide-max-1.svg • vis-arrow/guide-max-2.svg • vis-arrow/guide-max-size-2.svg • vis-arrow/guide-mm.svg • vis-arrow/guide-name-guide.svg • vis-arrow/vector-arrow-example.svg • vis-arrow/with-scale.svg • vis-contour2/aesthetics-in-contour-labels.svg • vis-contour2/contour2-base-stat.svg • vis-contour_fill/contour-fill-base-stat.svg • vis-contour_fill/contour-fill-fill.svg • vis-contour_fill/contour-fill-level-d.svg • vis-contour_fill/contour-fill-nofill2.svg • vis-discretised-scale/discretised-change-limits.svg • vis-discretised-scale/discretised-change-limits2.svg • vis-discretised-scale/discretised-divergent.svg • vis-discretised-scale/discretised-retrofitted.svg • vis-discretised-scale/user-supplied-breaks.svg • vis-geom-relief/volcano-relief-no-interpolate.svg • vis-geom-relief/volcano-relief-shadow.svg • vis-geom-relief/volcano-relief-sun-angle.svg • vis-geom-relief/volcano-shadow-range.svg • vis-geom-relief/volcano-shadow2.svg • vis-guide_colorstrip/colorstrip-inside.svg • vis-guide_colorstrip/horizontal-direction.svg • vis-guide_colorstrip/inside-guide-colorstip.svg • vis-guide_colorstrip/reverse-guide-colorstip.svg • vis-streamline/streamline-base-stat.svg • vis-streamline/streamline-ywrapped.svg • vis-text-contour/labels-text.svg • vis-text-contour/minsize.svg • vis-text-contour/placement-fraction.svg • vis-text-contour/placement-minmax-horizontal.svg • vis-text-contour/placement-minmax-vertical.svg • vis-text-contour/placement-n.svg • vis-text-contour/text-contour-norotate.svg Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [91s] OK * checking PDF version of manual ... [25s] OK * checking HTML version of manual ... [13s] OK * DONE Status: 1 ERROR