* using log directory ‘/Users/ripley/R/packages/tests-SAN/grates.Rcheck’ * using R Under development (unstable) (2026-11-10 r90874) * using platform: aarch64-apple-darwin27.2.0 * R was compiled by Apple clang version 21.0.0 (clang-2100.4.1.1) GNU Fortran (GCC) 14.2.0 * running under: macOS Golden Gate 27.2.1 * using session charset: UTF-8 * current time: 2026-11-11 11:03:11 UTC * using option ‘--no-stop-on-test-error’ * checking for file ‘grates/DESCRIPTION’ ... OK * this is package ‘grates’ version ‘1.8.1’ * package encoding: UTF-8 * 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 ‘grates’ can be installed ... OK * used C compiler: ‘Apple clang version 21.0.0 (clang-2100.4.1.1)’ * used SDK: ‘MacOSX27.3.sdk’ * checking package directory ... 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 pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking tests ... [21s/22s] ERROR Running ‘testthat.R’ [21s/21s] 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(grates) > > test_check("grates") grates.c:37:60: runtime error: nan is outside the range of representable values of type 'int' #0 0x00010e6f27b0 in as_grouped_week_from_date grates.c:37 #1 0x000105ed9fc4 in R_doDotCall dotcode.c:760 #2 0x000106128fa8 in bcEval_loop eval.c:8708 #3 0x0001060d1110 in bcEval eval.c:7537 #4 0x0001060cf1a8 in Rf_eval eval.c:1167 #5 0x0001060d9754 in R_execClosure eval.c:2400 #6 0x0001060d4d54 in applyClosure_core eval.c:2316 #7 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #8 0x0001062b6150 in dispatchMethod objects.c:473 #9 0x0001062b3ef4 in Rf_usemethod objects.c:513 #10 0x0001062b73dc in do_usemethod objects.c:579 #11 0x000106113d54 in bcEval_loop eval.c:8174 #12 0x0001060d1110 in bcEval eval.c:7537 #13 0x0001060cf1a8 in Rf_eval eval.c:1167 #14 0x0001060d9754 in R_execClosure eval.c:2400 #15 0x0001060d4d54 in applyClosure_core eval.c:2316 #16 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #17 0x0001060cfbd0 in Rf_eval eval.c:1278 #18 0x0001060d1560 in forcePromise eval.c:976 #19 0x0001060cfad4 in Rf_eval eval.c:1185 #20 0x0001060d1560 in forcePromise eval.c:976 #21 0x0001060cf228 in Rf_eval eval.c:1191 #22 0x0001062b71dc in do_usemethod objects.c:575 #23 0x000106113d54 in bcEval_loop eval.c:8174 #24 0x0001060d1110 in bcEval eval.c:7537 #25 0x0001060cf1a8 in Rf_eval eval.c:1167 #26 0x0001060d9754 in R_execClosure eval.c:2400 #27 0x0001060d4d54 in applyClosure_core eval.c:2316 #28 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #29 0x0001060cfbd0 in Rf_eval eval.c:1278 #30 0x0001060e81fc in do_set eval.c:3587 #31 0x0001060cf604 in Rf_eval eval.c:1230 #32 0x0001060e4008 in do_begin eval.c:3003 #33 0x0001060cf604 in Rf_eval eval.c:1230 #34 0x0001060d9754 in R_execClosure eval.c:2400 #35 0x0001060d4d54 in applyClosure_core eval.c:2316 #36 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #37 0x0001060cfbd0 in Rf_eval eval.c:1278 #38 0x0001060d1560 in forcePromise eval.c:976 #39 0x0001060cf228 in Rf_eval eval.c:1191 #40 0x0001062b71dc in do_usemethod objects.c:575 #41 0x000106113d54 in bcEval_loop eval.c:8174 #42 0x0001060d1110 in bcEval eval.c:7537 #43 0x0001060cf1a8 in Rf_eval eval.c:1167 #44 0x0001060d9754 in R_execClosure eval.c:2400 #45 0x0001060d4d54 in applyClosure_core eval.c:2316 #46 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #47 0x0001060cfbd0 in Rf_eval eval.c:1278 #48 0x0001060d1d08 in Rf_evalList eval.c:3685 #49 0x0001060cf7d8 in Rf_eval eval.c:1249 #50 0x0001060d1d08 in Rf_evalList eval.c:3685 #51 0x0001060cf7d8 in Rf_eval eval.c:1249 #52 0x0001060d1d08 in Rf_evalList eval.c:3685 #53 0x0001060cf7d8 in Rf_eval eval.c:1249 #54 0x0001060e81fc in do_set eval.c:3587 #55 0x0001060cf604 in Rf_eval eval.c:1230 #56 0x0001060e4008 in do_begin eval.c:3003 #57 0x0001060cf604 in Rf_eval eval.c:1230 #58 0x0001060ee38c in do_eval eval.c:3977 #59 0x00010612588c in bcEval_loop eval.c:8154 #60 0x0001060d1110 in bcEval eval.c:7537 #61 0x0001060cf1a8 in Rf_eval eval.c:1167 #62 0x0001060d9754 in R_execClosure eval.c:2400 #63 0x0001060d4d54 in applyClosure_core eval.c:2316 #64 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #65 0x0001060cfbd0 in Rf_eval eval.c:1278 #66 0x0001060ee858 in do_eval eval.c:3995 #67 0x00010612588c in bcEval_loop eval.c:8154 #68 0x0001060d1110 in bcEval eval.c:7537 #69 0x0001060cf1a8 in Rf_eval eval.c:1167 #70 0x0001060d9754 in R_execClosure eval.c:2400 #71 0x0001060d4d54 in applyClosure_core eval.c:2316 #72 0x0001060d6b48 in Rf_applyClosure eval.c:2335 #73 0x0001060d6b48 in R_forceAndCall eval.c:2467 #74 0x000105ce1f80 in do_lapply apply.c:75 #75 0x0001062ac3b8 in do_internal names.c:1425 #76 0x000106113d54 in bcEval_loop eval.c:8174 #77 0x0001060d1110 in bcEval eval.c:7537 #78 0x0001060cf1a8 in Rf_eval eval.c:1167 #79 0x0001060d9754 in R_execClosure eval.c:2400 #80 0x0001060d4d54 in applyClosure_core eval.c:2316 #81 0x0001060d2ebc in Rf_applyClosure eval.c:2335 #82 0x0001060cfbd0 in Rf_eval eval.c:1278 #83 0x00010622f74c in Rf_ReplIteration main.c:264 #84 0x000106233a5c in R_ReplConsole main.c:319 #85 0x000106233870 in run_Rmainloop main.c:1239 #86 0x000106233b58 in Rf_mainloop main.c:1246 #87 0x00010484d5f0 in main Rmain.c:29 #88 0x000190298d78 in start+0x19f8 (dyld:arm64e+0x31d78) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior grates.c:37:60 Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Scale for x is already present. Adding another scale for x, which will replace the existing scale. Saving _problems/test-epiweek-43.R Saving _problems/test-epiweek-44.R Saving _problems/test-isoweek-44.R Saving _problems/test-isoweek-52.R Saving _problems/test-yearweek-46.R Saving _problems/test-yearweek-54.R Saving _problems/test-yearweek-62.R Saving _problems/test-yearweek-66.R [ FAIL 8 | WARN 0 | SKIP 12 | PASS 860 ] ══ Skipped tests (12) ══════════════════════════════════════════════════════════ • On CRAN (12): 'test-plots.R:33:1', 'test-plots.R:71:1', 'test-plots.R:103:1', 'test-plots.R:135:1', 'test-plots.R:164:1', 'test-plots.R:200:1', 'test-plots.R:235:1', 'test-plots.R:271:1', 'test-plots.R:310:1', 'test-plots.R:356:1', 'test-plots.R:376:1', 'test-plots.R:396:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-epiweek.R:43:5'): epiweek, january 1 dates ─────────────────── Expected `as.character(dates_epi)` to be identical to `expected`. Differences: `actual[17:20]`: "2017-W01" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2017-W01" "2018-W01" "2019-W01" NA ── Failure ('test-epiweek.R:44:5'): epiweek, january 1 dates ─────────────────── Expected `dates_epi` to be identical to `suppressWarnings(epiweek(epiyears, epiweeks))`. Differences: `actual[17:20]`: "2017-W01" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2017-W01" "2018-W01" "2019-W01" NA ── Failure ('test-isoweek.R:44:5'): isoweek, january 1 dates ─────────────────── Expected `as.character(dates_iso)` to be identical to `expected`. Differences: `actual[17:20]`: "2016-W52" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2016-W52" "2018-W01" "2019-W01" NA ── Failure ('test-isoweek.R:52:5'): isoweek, january 1 dates ─────────────────── Expected `dates_iso` to be identical to `suppressWarnings(isoweek(years, weeks))`. Differences: `actual[17:20]`: "2016-W52" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2016-W52" "2018-W01" "2019-W01" NA ── Failure ('test-yearweek.R:46:5'): yearweek, january 1 dates ───────────────── Expected `as.character(dates_iso)` to be identical to `expected`. Differences: `actual[17:20]`: "2016-W52" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2016-W52" "2018-W01" "2019-W01" NA ── Failure ('test-yearweek.R:54:5'): yearweek, january 1 dates ───────────────── Expected `dates_iso` to be identical to `suppressWarnings(yearweek(years, weeks))`. Differences: `actual[17:20]`: "2016-W52" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2016-W52" "2018-W01" "2019-W01" NA ── Failure ('test-yearweek.R:62:5'): yearweek, january 1 dates ───────────────── Expected `dates_epi` to be identical to `suppressWarnings(yearweek(epiyears, epiweeks, 7L))`. Differences: `actual[17:20]`: "2017-W01" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2017-W01" "2018-W01" "2019-W01" NA ── Failure ('test-yearweek.R:66:5'): yearweek, january 1 dates ───────────────── Expected `as.character(dates_epi)` to be identical to `expected`. Differences: `actual[17:20]`: "2017-W01" "2018-W01" "2019-W01" "1970-W01" `expected[17:20]`: "2017-W01" "2018-W01" "2019-W01" NA [ FAIL 8 | WARN 0 | SKIP 12 | PASS 860 ] Error: ! Test failures. Execution halted * checking package vignettes ... OK * checking re-building of vignette outputs ... [14s/19s] OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR