- using R Under development (unstable) (2025-12-24 r89227)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.8 (1)
Debian flang version 21.1.8 (1)
- running under: Debian GNU/Linux forky/sid
- 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 CRAN incoming feasibility ... [2s/2s] OK
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘heatwaveR’ can be installed ... WARNING
Found the following significant warnings:
Warning: src/Makevars: Unknown C++ standard ‘CXX12’ was ignored
See the install log for details.
- used C++ compiler: ‘Debian clang version 21.1.8 (1)’
- checking package directory ... OK
- checking for future file timestamps ... 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/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/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 ... [17s/24s] OK
- checking Rd files ... [1s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/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 use of SHLIB_OPENMP_*FLAGS in Makefiles ... 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 ... [24s/27s] ERROR
Running examples in ‘heatwaveR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
detect_event 4.437 0.1 6.02
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [238s/158s] ERROR
Running ‘testthat.R’ [238s/158s]
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 ... [74s/78s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [4s/6s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 WARNING