- using R version 4.5.2 (2025-10-31 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.3.0
GNU Fortran (GCC) 14.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'heatwaveR/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'heatwaveR' version '0.5.4'
- 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 'heatwaveR' can be installed ... OK
See the install log for details.
- used C++ compiler: 'g++.exe (GCC) 14.3.0'
- 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 ... [2s] 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 ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] 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 ... [8s] OK
- checking Rd files ... [1s] 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 ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compiled code ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [29s] ERROR
Running examples in 'heatwaveR-Ex.R' failed
The error most likely occurred in:
> ### Name: ts2clm3
> ### Title: Make a climatology from a daily time series.
> ### Aliases: ts2clm3
>
> ### ** Examples
>
> data.table::setDTthreads(threads = 1) # optimise for your code and local computer
> res <- ts2clm3(sst_WA, climatologyPeriod = c("1983-01-01", "2012-12-31"))
> res[1:10, ]
t temp seas thresh
<Date> <num> <num> <num>
1: 1982-01-01 20.94 21.6080 22.9605
2: 1982-01-02 21.25 21.6348 22.9987
3: 1982-01-03 21.38 21.6621 23.0376
4: 1982-01-04 21.16 21.6895 23.0771
5: 1982-01-05 21.26 21.7169 23.1130
6: 1982-01-06 21.61 21.7436 23.1460
7: 1982-01-07 21.74 21.7699 23.1775
8: 1982-01-08 21.50 21.7958 23.2080
9: 1982-01-09 21.40 21.8217 23.2366
10: 1982-01-10 21.36 21.8478 23.2649
>
> # Or if one only wants the 366 day climatology
> res_clim <- ts2clm3(sst_WA, climatologyPeriod = c("1983-01-01", "2012-12-31"),
+ clmOnly = TRUE)
> res_clim[1:10, ]
doy seas thresh
<num> <num> <num>
1: 1 21.6080 22.9605
2: 2 21.6348 22.9987
3: 3 21.6621 23.0376
4: 4 21.6895 23.0771
5: 5 21.7169 23.1130
6: 6 21.7436 23.1460
7: 7 21.7699 23.1775
8: 8 21.7958 23.2080
9: 9 21.8217 23.2366
10: 10 21.8478 23.2649
>
> # Or if one wants the variance column included in the results
> res_var <- ts2clm3(sst_WA, climatologyPeriod = c("1983-01-01", "2012-12-31"),
+ var = TRUE)
Warning in data.table::frollapply(thresh, n = smoothPercentileWidth, var, :
'n' is deprecated in frollapply, use 'N' instead
Error in data.table::frollapply(thresh, n = smoothPercentileWidth, var, :
argument "FUN" is missing, with no default
Calls: ts2clm3 ... [.data.table -> eval -> eval -> <Anonymous> -> match.fun
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [237s] ERROR
Running 'testthat.R' [237s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(heatwaveR)
>
> test_check("heatwaveR")
Saving _problems/test-ts2clm3-101.R
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 390 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ts2clm3.R:101:3'): var argument functions correctly ────────────
<getvarError/missingArgError/error/condition>
Error in `data.table::frollapply(thresh, n = smoothPercentileWidth, var, na.rm = FALSE, align = "center")`: argument "FUN" is missing, with no default
Backtrace:
▆
1. └─heatwaveR::ts2clm3(...) at test-ts2clm3.R:101:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
4. └─base::eval(jsub, SDenv, parent.frame())
5. └─base::eval(jsub, SDenv, parent.frame())
6. └─data.table::frollapply(...)
7. └─base::match.fun(FUN)
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 390 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [61s] OK
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 2 ERRORs