- using R Under development (unstable) (2024-11-13 r87330 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'easyclimate/DESCRIPTION' ... OK
- this is package 'easyclimate' version '0.2.1'
- 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 'easyclimate' can be installed ... OK
See the install log for details.
- 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s] OK
- checking loading without being on the library search path ... [0s] 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 ... [2s] 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 ... [0s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [6s] ERROR
Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(easyclimate)
>
> test_check("easyclimate")
[ FAIL 2 | WARN 0 | SKIP 9 | PASS 28 ]
══ Skipped tests (9) ═══════════════════════════════════════════════════════════
• On CRAN (9): 'test-get_daily_climate.R:6:3', 'test-get_daily_climate.R:53:3',
'test-get_daily_climate_single.R:59:3',
'test-get_daily_climate_single.R:110:3',
'test-get_daily_climate_single.R:164:3',
'test-get_daily_climate_single.R:212:3',
'test-get_daily_climate_single.R:248:3',
'test-get_daily_climate_single.R:274:3',
'test-get_daily_climate_single.R:303:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-period_to_days.R:30:3'): period_to_days works with character input ──
period_to_days(period = "2008-09-27") (`actual`) not identical to as.Date("2008-09-27") (`expected`).
`actual` is an S3 object of class <Date>, an integer vector
`expected` is an S3 object of class <Date>, a double vector
── Failure ('test-period_to_days.R:32:3'): period_to_days works with character input ──
period_to_days(period = c("2008-09-27", "2008-01-27")) (`actual`) not identical to as.Date(c("2008-09-27", "2008-01-27")) (`expected`).
`actual` is an S3 object of class <Date>, an integer vector
`expected` is an S3 object of class <Date>, a double vector
[ FAIL 2 | WARN 0 | SKIP 9 | PASS 28 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [21s] OK
- checking HTML version of manual ... [1s] OK
- DONE
Status: 1 ERROR